summaryrefslogtreecommitdiff
path: root/HumanPlayer.cpp
Commit message (Collapse)AuthorAgeFilesLines
* + Started unit selection implementation. Not finished yet.XaviDCR922018-08-021-4/+38
|
* + BaseUnit.cpp, BaseUnit.h: added simple member functions for extracting ↵XaviDCR922018-07-261-0/+24
| | | | | | BaseUnit protected data. + HumanPlayer.cpp: started implementing unit selection. Still TODO.
* * Menu.cpp: actions for CHOICE_SINGLE_PLAYER_GAME have been moved to a new ↵XaviDCR922018-07-261-90/+53
| | | | | | | | | | | | | function called MainMenuSinglePlayer(). + BaseUnit.cpp, BaseUnit.h: new _selected flag. + Camera.cpp, Camera.h: linear movement has been taken over quadratic movement. Also, cursor now moves if dealing with screen borders. + Cursor.cpp, Cursor.h: new Cursor class holds cursor X/Y information. It is meant to be contained inside a HumanPlayer object. * Game.cpp: minor changes in casts and comments. + HumanPlayer.cpp: added callbacks for button release events. * HumanPlayer.cpp, HumanPlayerBtn.cpp: button handling has been transferred from HumanPlayer.cpp to HumanPlayerBtn.cpp in order to improve modularity. + Sprite.cpp: sprite data was not being checked against NULL. - Unit.cpp: drawHandler() is now executed by Player object.
* Camera is now an independent instance, and HumanPlayer only holds a ↵XaviDCR922018-07-101-9/+13
| | | | reference to it.
* More work on Unit/BaseUnit concepts.XaviDCR922018-07-101-9/+38
|
* Fixed "includes/defines/local variables" headers.XaviDCR922018-07-091-9/+13
|
* Calls to HumanPlayer and Camera button pressed event handlers are now ↵XaviDCR922018-07-091-12/+95
| | | | automatically handled by two const arrays of member functions pointers.
* Game has been restructured in favor of OOPXaviDCR922018-07-091-0/+43