Added menu buttons for building types of units

This commit is contained in:
2011-07-03 10:26:46 -04:00
parent 793d6bd9a2
commit 6085267cc4
3 changed files with 37 additions and 11 deletions

View File

@ -13,9 +13,9 @@ using std::string;
// fixme: there's probably a better way to do this, but SDL's event model
// has me hard-pressed to figure out what it is.
enum ButtonAction {BUTTON_BUILD, BUTTON_ATTACK, BUTTON_MOVE,
BUTTON_BUILD_ATTACKER, BUTTON_BUILD_DEFENDER,
BUTTON_BUILD_PRODUCER};
enum ButtonAction {BUTTON_BUILD=0x1, BUTTON_ATTACK=0x2, BUTTON_MOVE=0x4,
BUTTON_BUILD_ATTACKER=0x8, BUTTON_BUILD_DEFENDER=0x10,
BUTTON_BUILD_PRODUCER=0x20};
class MenuButton
{