Commit Graph

16 Commits

Author SHA1 Message Date
6aedad51e5 Most of the attack functionality now in place, but it's not all quite working yet 2011-06-24 14:59:18 -04:00
e51a328641 More implementation for attacking 2011-06-24 12:18:52 -04:00
977322d4ee First stab at the calculate_strength() function - all it nets us is a floating point exception when compiling with -DDEBUG 2011-06-24 11:03:40 -04:00
3a3132e44a added a score value and some docs to Graph class 2011-06-24 10:18:31 -04:00
5ed05fc829 Separated game-specific graph behavior into a subclass, implemented 2 players alternating turns 2011-06-23 17:28:49 -04:00
b967542157 Support different colours for different vertices 2011-06-23 15:10:40 -04:00
9d36120f6d Fixed a compile bug, general code cleanup 2011-06-23 14:42:07 -04:00
a9bd00f37d Added code to prevent edges from crossing 2011-06-23 13:54:28 -04:00
fc71203220 Use vertex's individual radius for all relevant calculations 2011-06-23 12:46:32 -04:00
d76fc8099e Major refactoring - moved constants around, made graph class more graphy, put things where they belong. Simplified a lot of code that I wrote when I wasn't thinking clearly, apparently. 2011-06-23 12:36:40 -04:00
54b46d77d2 Factored distance calculation into separate utility class 2011-06-23 12:07:45 -04:00
ecb16a4b5c Moved distance limiting code to a smarter location, refactored related code 2011-06-22 23:06:23 -04:00
48c45c2191 Code for some of the basic game design - selecting existing nodes, limiting edge distance 2011-06-22 22:32:33 -04:00
53f1560393 Fixed first vertex bug, use pointers to track vertices (in case we want to move them easily later), and added a formula for vertex distance calculations 2011-06-22 21:54:35 -04:00
fc08adcade First implementation of game logic and control 2011-06-22 17:57:44 -04:00
23add868d6 Added a graph class for representing and manipulating the game data 2011-06-22 17:29:41 -04:00