825a3f8e4aSome drastic refactoring to reduce complexity for buttons, but now all the primary buttons always look selected...Anna Wiggins2011-07-06 17:25:12 -0400
8a4ed42ab1Added some code for disabling button visually, but it doesn't quite workAnna Wiggins2011-07-06 16:47:34 -0400
eccc773457Added a 'ghost node' so players can see where their new nodes will go, and fixed some bugs in the processAnna Wiggins2011-07-06 16:17:30 -0400
735a9dfcefVertices can now render themselves - not sure what to do about edges, right now game is still doing themAnna Wiggins2011-07-06 14:52:45 -0400
42e2e43eadHuge refactor with the basic goal of reducing complexity in the Game class. Broke a couple of small things in the process - still working on fixing them back upAnna Wiggins2011-07-06 14:24:37 -0400
f90c60b6acRefactored Vertex and GameVertex classes into their own files, put some functions in GameVertex that made sense thereAnna Wiggins2011-07-03 16:37:07 -0400
8ad4ec0672Added some basic differences between vertex typesAnna Wiggins2011-07-03 15:48:06 -0400
fc0c0f26fdAdded ability to actually build different unit types, as well as icons to distinguish themAnna Wiggins2011-07-03 15:16:00 -0400
6085267cc4Added menu buttons for building types of unitsAnna Wiggins2011-07-03 10:26:46 -0400
793d6bd9a2Now the buttons actually do something - also added a build_typeAnna Wiggins2011-07-03 10:12:47 -0400
d04cde49c8Added rudimentary menu buttons, not yet connected to anything... it feels a bit hackish, to be honest, but I don't think we'll ever have too many to worry about, and if so, we can think about refactoring thenAnna Wiggins2011-07-02 17:34:11 -0400
c1ea399448Added menu area at the bottom of the game screenAnna Wiggins2011-07-01 23:47:24 -0400
306f3d0c17Start using dynamic_casts where appropriate, cleaned up some bugsAnna Wiggins2011-07-01 23:24:41 -0400
2bdc7e0e59Change text over nodes to just be hit pointsAnna Wiggins2011-07-01 22:23:16 -0400
a2f36a447bCreated GameVertex class so that we can store game-specific data in the verticesAnna Wiggins2011-07-01 22:04:58 -0400
4daaced5d7Laid the groundwork for a more complex game - introduced a couple of bugs (can attack from anywhere, can't select another of your own vertices in attack mode...)Anna Wiggins2011-07-01 14:10:45 -0400
d1c11799f4Added some new files left out of last commitAnna Wiggins2011-07-01 13:24:02 -0400
938e75716cImplemented font framework, print info about each vertexAnna Wiggins2011-07-01 13:15:30 -0400
36414a6996Put framework in place for dealing with graphs in 3 dimensionsAnna Wiggins2011-07-01 12:24:52 -0400
2bddf92001Folded sdlrenderer code into Game(), since we'll be doing rendering on a per-state basisAnna Wiggins2011-06-27 22:35:52 -0400
5522cbc64cRefactored code heavily to be able to use a state stack - main function now does the basic init, looping, and shutdown, and each state is a pointer to an object that has its own event handling, rendering, etcAnna Wiggins2011-06-27 22:07:52 -0400
07fc8c67c1Removed the concept of edges in favor of a proper tree-style approach, with each vertex knowing about its neighbors. This seems to have broken both Grah::crosses_edge() and Graph::remove_vertex. and the move radius circle doesn't draw any more. Go team.Anna Wiggins2011-06-27 18:10:24 -0400
1a555b900cSplit calculate_strength into a recursive and non-recursive portion - saves a lot of special checkingAnna Wiggins2011-06-24 11:32:50 -0400
81028d7070Use floats for strength calculations s. This has the amusing problem of making everything after the first node 'inf'Anna Wiggins2011-06-24 11:06:26 -0400
977322d4eeFirst stab at the calculate_strength() function - all it nets us is a floating point exception when compiling with -DDEBUGAnna Wiggins2011-06-24 11:03:40 -0400
5205b9dfabForgot to test compilation, made it happen...Anna Wiggins2011-06-24 10:19:41 -0400
3a3132e44aadded a score value and some docs to Graph classAnna Wiggins2011-06-24 10:18:31 -0400
6560b1c28bIncrease portability as per SDL standards, add a window titleAnna Wiggins2011-06-24 09:53:44 -0400
d76fc8099eMajor 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.Anna Wiggins2011-06-23 12:36:40 -0400
54b46d77d2Factored distance calculation into separate utility classAnna Wiggins2011-06-23 12:07:45 -0400
d8e97ff0c9Draw nodes with draw_circle_filled, eliminate node textureAnna Wiggins2011-06-23 10:10:07 -0400
ef2c6bc89fClean up move_template stuff, move selection circle behind everything elseAnna Wiggins2011-06-23 10:04:14 -0400
48c45c2191Code for some of the basic game design - selecting existing nodes, limiting edge distanceAnna Wiggins2011-06-22 22:32:33 -0400
53f1560393Fixed first vertex bug, use pointers to track vertices (in case we want to move them easily later), and added a formula for vertex distance calculationsAnna Wiggins2011-06-22 21:54:35 -0400