summaryrefslogtreecommitdiff
path: root/System.h
Commit message (Collapse)AuthorAgeFilesLines
* * Menu.cpp: actions for CHOICE_SINGLE_PLAYER_GAME have been moved to a new ↵XaviDCR922018-07-261-2/+0
| | | | | | | | | | | | | 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.
* Game has been restructured in favor of OOPXaviDCR922018-07-091-83/+13
|
* Kinda improved pathfinding algorithm. Still some work TODO.XaviDCR922017-11-101-1/+2
| | | | | | | Fixed some errors in DEBUG_VAR macro. Shadows are now drawn before any other object. Different strings are now shown depending on the number of selected units. Some work on calculating actions mask when different types of units are selected. Still some work TODO.
* *Removed decceleration for camera.XaviDCR922017-11-051-0/+2
| | | | | | Improved pathfinding when a unit collides with another unit. Added generic function to find distances. Other minor changes.
* Deprecated use of sprintf() in favor of custom routine Systemitoa().XaviDCR922017-11-051-0/+2
| | | | When B button is released and showActionsMenu == true, showActionsMenu = false.
* * Modified shadows for Town centre.XaviDCR922017-11-051-1/+1
| | | | | | * Bugfixes in unit movement and collision detection. Now it should work fine. * Added include guards to all *.i files. * Other minor changes
* Removed Building and GameStructures modules. Restructured SW for Unit and ↵XaviDCR922017-09-081-4/+11
| | | | Player, still a lot TODO
* + Initial commit. Added source, sprites and final executable.XaviDCR922017-03-071-0/+90