Class PatrolInternalState


  • public class PatrolInternalState
    extends java.lang.Object
    Patrol state.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2014 Created on Feb 21, 2014
    • Constructor Detail

      • PatrolInternalState

        public PatrolInternalState​(int premium,
                                   int bonusPerAttack,
                                   ch.sahits.game.openpatrician.model.city.ICity[] destinations)
    • Method Detail

      • getPremium

        public int getPremium()
      • getBonusPerAttack

        public int getBonusPerAttack()
      • getNumberOfAttacks

        public int getNumberOfAttacks()
      • incAttackCounter

        public void incAttackCounter()
      • removeFirstCity

        public void removeFirstCity()
      • nextDestination

        public java.util.Optional<ch.sahits.game.openpatrician.model.city.ICity> nextDestination()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object