Commit graph

10 commits

Author SHA1 Message Date
mdiluzio
9e44d5144b Rename all usages of Team to Player
This was confusingly inconsistent in the codebase.
fixes #7
2014-12-21 11:04:26 +00:00
mdiluzio
f55bc5413a Correct case for all CUnit methods 2014-12-21 10:44:08 +00:00
mdiluzio
f63dc8462f COrder -> SOrder 2014-12-21 10:39:39 +00:00
mdiluzio
9551560bc0 OrderUnitPair -> SOrderUnitPair 2014-12-21 10:31:00 +00:00
mdiluzio
f6f6d6fafd Add an END specifiers to gamestate and order files
Game will now wait until the last line of an order file matches "END"
AI's MUST now finalise their order file with "END"

fixes #1
2014-12-20 16:33:42 +00:00
mdiluzio
fa7aa15ccd Fix some bugs
Fix a case where game folder existed in verious forms
Fix bug where game would not correctly end at draw state
Fix bug where the team order file was looked for in the wrong directory
Extract gamestate function and properly handle game ending scenarios
Stop hitting yourselves

Fixed bug where units would not move forward because they were hitting themselves
2014-12-20 15:35:18 +00:00
Marc Di Luzio
3fc1f5ee5d Change unit Attack behaviour to a charge
All charges on a turn are evaluated at the same time, step by step
2014-12-17 13:38:06 +00:00
Marc Di Luzio
2a410d98c0 Set up a basic ttrts binary
It takes a game description from the command line.
Looks in a folder 'ttrts_gamename' for turn commands
Reads those in and simulates until a winner is found
2014-12-16 13:13:03 +00:00
Marc Di Luzio
a90ad9f90c Remove player IDs, keep it simple stupid 2014-12-16 13:13:03 +00:00
Marc Di Luzio
d0d3834449 Move source code into source subfolder 2014-12-16 13:13:02 +00:00
Renamed from game/game.cpp (Browse further)