summaryrefslogtreecommitdiff
path: root/Unit.cpp
diff options
context:
space:
mode:
authorXaviDCR92 <xavi.dcr@gmail.com>2018-07-26 21:15:59 +0200
committerXaviDCR92 <xavi.dcr@gmail.com>2018-07-26 21:15:59 +0200
commitbfdc0b9f497ef10f6687abcc55d93405c611af11 (patch)
tree43914b2eada0bf5fb09093d61a250d4930b57a5d /Unit.cpp
parent853c6cddaa2713a9eb0c1f1c55e3f61592f04a46 (diff)
* Menu.cpp: actions for CHOICE_SINGLE_PLAYER_GAME have been moved to a new 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.
Diffstat (limited to 'Unit.cpp')
-rw-r--r--Unit.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/Unit.cpp b/Unit.cpp
index a8a5988..89e218e 100644
--- a/Unit.cpp
+++ b/Unit.cpp
@@ -99,8 +99,6 @@ void Unit::handler(void)
{
/* Execute base class handler. */
BaseUnit::handler();
-
- drawHandler();
}
/*****************************************************************//**