summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/game/Unit.java
AgeCommit message (Expand)AuthorFilesLines
2015-02-18Unit: revertLastMove: updateOverlays() and this.move = nullJérémy Zurcher1-0/+2
2015-02-18Move: isEnter(), isSet(), isRegular(), isFinal()Jérémy Zurcher1-2/+2
2015-02-18Unit: remove attack debug outputJérémy Zurcher1-1/+0
2015-02-18Attack: cleanup Pawn.engagement->Pawn.attackJérémy Zurcher1-1/+1
2015-02-05Unit: add private void updateOverlays()Jérémy Zurcher1-2/+7
2015-02-05Unit: canRotate() returns canMove()Jérémy Zurcher1-2/+1
2015-01-18remove Pawn.Movement class, use Move insteadJérémy Zurcher1-4/+14
2014-12-11Unit: add HAS_FIRED, HAS_MOVED overlayJérémy Zurcher1-0/+10
2014-11-21Unit: add getArmyJérémy Zurcher1-0/+5
2014-11-19Unit: add private updateDescr()Jérémy Zurcher1-2/+13
2014-11-19Unit: add HQ = 5 overlayJérémy Zurcher1-6/+14
2014-11-18Unit: add promote(), degrade()Jérémy Zurcher1-0/+28
2014-11-17Unit.FLANK_ATTACK_BONUS = 1Jérémy Zurcher1-0/+2
2014-11-17Unit: use isA(...)Jérémy Zurcher1-5/+6
2014-11-17Pawn,Unit: add int getDefense(Tile)Jérémy Zurcher1-0/+9
2014-11-17Pawn,Unit: add interface Pawn.PawnId, boolean isA(PawnId i)Jérémy Zurcher1-4/+10
2014-11-17Unit: add boolean isAce(), void setAce(boolean)Jérémy Zurcher1-0/+14
2014-11-15Unit: add setMoved() to mark it unconditionallyJérémy Zurcher1-3/+8
2014-11-14Unit: revertLastMove: restore mpLeft = mpJérémy Zurcher1-0/+1
2014-11-14Naming attack -> engagement - move -> movementJérémy Zurcher1-11/+11
2014-11-10Pawn,Unit: fix the way the Unit is marked has movedJérémy Zurcher1-1/+1
2014-11-06add TankOnTank.debug(...)Jérémy Zurcher1-3/+5
2014-11-05Pawn: enter/rotate/move/attack -> move() and attack()Jérémy Zurcher1-17/+9
2014-11-05Pawn.Attack: .reset() and .toString()Jérémy Zurcher1-0/+1
2014-11-05Unit: indentJérémy Zurcher1-4/+4
2014-11-05Pawn,Unit: add enter(int cost)Jérémy Zurcher1-1/+13
2014-11-01clean up Pawn overlaysJérémy Zurcher1-7/+7
2014-10-31Unit: artillery is an hard target tooJérémy Zurcher1-1/+1
2014-10-30Pawn: remove boolean canBeAttacked(Pawn) -> use boolean canAttack(Pawn)Jérémy Zurcher1-6/+0
2014-10-29Unit: use common consturctorJérémy Zurcher1-2/+2
2014-10-29Map,Unit: simplify show/hide functionsJérémy Zurcher1-18/+9
2014-10-29Pawn: add boolean canBeAttacked(Pawn other)Jérémy Zurcher1-0/+6
2014-10-29Unit: add ATTACK_ASSIST overlayJérémy Zurcher1-0/+6
2014-10-28Unit: add overlays methods showMoveable(), showAttack(), showTarget()Jérémy Zurcher1-1/+18
2014-10-28Unit: add getHex()Jérémy Zurcher1-0/+5
2014-10-28use 4 atlases, set Unit overlaysJérémy Zurcher1-6/+6
2014-10-20Paw,Unit: add boolean isA(PawnType type)Jérémy Zurcher1-7/+13
2014-10-20Unit: canAttack(Pawn other) calls canAttack()Jérémy Zurcher1-1/+1
2014-10-20Pawn,Unit: add boolean isHardTarget() this fixes canMove/Rotate/AttackJérémy Zurcher1-3/+9
2014-10-17Army: engine/Army -> interface engine/Faction + enum game/Army implements Fac...Jérémy Zurcher1-1/+0
2014-10-17Army: goes from game to engineJérémy Zurcher1-18/+5
2014-10-17Unit: add String to enum UnitId, set descr -> nice toString()Jérémy Zurcher1-16/+22
2014-10-14Pawn,Unit: add boolean isHqOf(Pawn), Player add boolean canPromote(Pawn)Jérémy Zurcher1-0/+9
2014-10-14Unit: add UnitId idJérémy Zurcher1-3/+26
2014-10-14Pawn,Unit add boolean canAssistAttackWithoutLos() and UnitType.ARTILLERYJérémy Zurcher1-1/+8
2014-10-14unify error msgsJérémy Zurcher1-1/+1
2014-10-13Unit: fix isHq() -> add UnitType.HARD_TARGET_HQJérémy Zurcher1-4/+2
2014-10-13Pawn,Unit: add int getFlankSides()Jérémy Zurcher1-0/+6
2014-10-13Unit: set UnitType, fix getAttackRangeFrom(Tile)Jérémy Zurcher1-9/+17
2014-10-12Unit: add isEnemy(Army)Jérémy Zurcher1-0/+5