Commit graph

17 commits

Author SHA1 Message Date
Marc Di Luzio
7a75fbd369 Clean up CXX Flags and remove statements relating to us being cool. If you have to say it, it ain't true 2014-12-16 13:13:02 +00:00
Marc Di Luzio
005896b13c Add comments and clean up game.cpp 2014-12-16 13:13:02 +00:00
Marc Di Luzio
99cd93ae22 Turn on all warnings, except reorder, and fix remaining warnings 2014-12-16 13:13:02 +00:00
Marc Di Luzio
7e2fd0a8d1 Fix a few more bugs and implement more tests
Bug in infinite recursion on move assignment operator.
Bug in adding the wron units ID to the kill list.
2014-12-16 13:13:02 +00:00
Marc Di Luzio
9b00030039 More tests 2014-12-16 13:13:01 +00:00
Marc Di Luzio
aee703b107 Finialise the full game step
Had to rework a ton of code from bad design.
NOTE: FRIENDLY FIRE IS ON >:D
2014-12-16 13:13:01 +00:00
Marc Di Luzio
3c4a90d068 Simplify some things, zomg c++11 for loops are beautiful 2014-12-16 13:13:01 +00:00
Marc Di Luzio
e310acfaf8 More skeleton code for simulating a turn
Use enum classes for safe enums
2014-12-16 13:13:01 +00:00
Marc Di Luzio
0c7721cb17 remove unit inheritence, twas a silly idea, and remove usage of shared ptr and unique ptr not needed anymore 2014-12-16 13:13:01 +00:00
Marc Di Luzio
0700a13129 use uvec unstead of two params, simplifies things 2014-12-16 13:13:01 +00:00
Marc Di Luzio
72b35dbc06 Framework for movement and action orders, plus some better organisation of the test code 2014-12-16 13:13:00 +00:00
Marc Di Luzio
008739dee6 Various work towards a basic game implementation
Get rid of some virtual functions that weren't needed.
Fix some functions to work during static init if need be.
Units now have unique incremental IDs
2014-12-16 13:13:00 +00:00
Marc Di Luzio
270036c925 Add stubs for game 2014-12-16 13:12:59 +00:00
Marc Di Luzio
108be3035f Final bit of design doe the game class, should be enough of a final interface to get started on implementation 2014-12-16 13:12:58 +00:00
Marc Di Luzio
a17a9db2ad lots of initial design for the game, and unit data 2014-12-16 13:12:58 +00:00
Marc Di Luzio
743c9a2859 Rename CBoardData, refactor a few things and add a maths library folder 2014-12-16 13:12:53 +00:00
Marc Di Luzio
8ddb8ae916 Some initial game board code, really simple 2014-12-16 13:12:50 +00:00