summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust/game/battles
AgeCommit message (Expand)AuthorFilesLines
2016-05-10Marshal: add Mode.PLAYER to load currentPlayer APJérémy Zurcher1-1/+3
2016-05-10BattleTest: use map.getExitZone(int) otherwise usExit is nullJérémy Zurcher1-4/+2
2016-05-04Battle: remove Ctrl from BattleCommon fieldsJérémy Zurcher3-33/+33
2016-05-03OMG: add event queue, messages, replay, bounce animation, complete states rew...Jérémy Zurcher1-26/+28
2016-04-11BattleCommon: remove useless importJérémy Zurcher1-1/+0
2016-04-11BattleCommon: must load map before Players, to have exit and entry Zones avai...Jérémy Zurcher1-1/+1
2016-04-07Map: enable exit Zone when adding it to the mapJérémy Zurcher1-1/+0
2016-03-31Battle: hasReinforcement() -> setNextTurn()Jérémy Zurcher3-23/+11
2016-03-22Battle,Ctrl: move JSON code from BattleCommon to CtrlJérémy Zurcher1-25/+1
2016-03-22Battle: unload turnCount into JSONJérémy Zurcher1-4/+10
2016-03-21Battle,Map5Marshal: implements util/MarshalJérémy Zurcher1-4/+23
2016-03-21BattleCommon,Map5Marshal: move JsonWriter & JsonReader usage from Map to BattleJérémy Zurcher1-3/+16
2016-03-14DB/BattleCommon: add turnCountJérémy Zurcher1-2/+13
2016-03-14BattleCommon: loadd(String) sets currentPlayerJérémy Zurcher1-0/+1
2016-03-07Battle: clean up the APIJérémy Zurcher3-39/+41
2016-03-07Player: remove id from constructorJérémy Zurcher3-8/+10
2016-03-07BattleCommon: code compressionJérémy Zurcher1-35/+6
2016-03-07BattleCommon: getWinner() first check if one player has no more unitsJérémy Zurcher1-3/+3
2016-02-29Battle,Map5Marshal: add boolean full to unload(...)Jérémy Zurcher1-2/+2
2016-02-10BattleCommon: init is one turn, only call map.turnDone() when all is doneJérémy Zurcher1-4/+1
2016-02-10Battle,State: use entry and exit Zones from Unit and MapJérémy Zurcher1-28/+8
2016-02-03Battle: add void init(Ctrl ctrl, String payload)Jérémy Zurcher1-0/+9
2016-02-03BattleCommon: turnDone() calls map.turnDone() after processingJérémy Zurcher1-3/+4
2016-02-03PawnId/UnitID -> PawnCode/UnitCodeJérémy Zurcher3-46/+46
2016-02-03BattleCommon: replace Player a, b with Player[2] playersJérémy Zurcher3-10/+13
2016-02-02Battle[Common]: add String unload() and implement itJérémy Zurcher1-0/+6
2016-02-02BattleCommon: remove empty lineJérémy Zurcher1-1/+0
2016-02-01Battle: add getMap()Jérémy Zurcher1-0/+6
2016-01-31BattleCommon: remove useless Army importJérémy Zurcher1-1/+0
2016-01-31Player,Battle: player id is private and needed at construction, Battle knows ...Jérémy Zurcher3-80/+88
2016-01-31Battle: code reorderJérémy Zurcher1-28/+24
2016-01-28BattleCommon: Factory is finalJérémy Zurcher1-1/+2
2016-01-27Battle: ... ok Battle.init() -> Battle.init(Ctrl) and sets the mapJérémy Zurcher1-2/+3
2016-01-27Battle: add setPlayerIdsJérémy Zurcher1-0/+6
2016-01-27BattleCommon: getNextPlayer is protectedJérémy Zurcher1-1/+1
2016-01-27Battle,Ctrl: clean up initialisation phaseJérémy Zurcher1-6/+1
2016-01-27Player: getTurnDone() + getCurrentTurn() -> getTurn(), turn is increased at t...Jérémy Zurcher2-3/+3
2016-01-25Ctrl: add abstract init() and processTurn()Jérémy Zurcher1-0/+1
2016-01-24remove useless import statementsJérémy Zurcher2-2/+0
2016-01-24Battle: setup return StateType, calls hud.update() when players are setJérémy Zurcher1-5/+11
2016-01-24Battle: merge start() into setup()Jérémy Zurcher3-33/+47
2016-01-24Battles: use add(int, int) instead of add(map.getHex(int, int))Jérémy Zurcher2-25/+25
2016-01-24BattleCommon: add getWinner(int)Jérémy Zurcher3-40/+27
2016-01-22Battles: add _id and descriptionJérémy Zurcher2-0/+9
2016-01-22Battle: add public int getId()Jérémy Zurcher1-0/+7
2016-01-11IterableArray does not extends ArrayList but has it's own implementationJérémy Zurcher1-4/+4
2016-01-11ArrayListIt -> IterableArrayJérémy Zurcher1-3/+3
2016-01-09use ArrayListItJérémy Zurcher1-3/+3
2015-12-24battles: add Battle00Jérémy Zurcher2-1/+122
2015-12-23BattleTest: be a test battle againJérémy Zurcher1-47/+55