aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/player.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2014-03-03 00:42:41 -0500
committerPaul Gilbert2014-03-03 00:42:41 -0500
commitd8026b9ef72d7ca22721486244309ccd4a003cae (patch)
treeb0862c0d308e64ae0e5afbe186e1c83d6ea5860f /engines/mads/player.cpp
parent3a842a079c668e9dfc52a6056119d4932e8ef56d (diff)
downloadscummvm-rg350-d8026b9ef72d7ca22721486244309ccd4a003cae.tar.gz
scummvm-rg350-d8026b9ef72d7ca22721486244309ccd4a003cae.tar.bz2
scummvm-rg350-d8026b9ef72d7ca22721486244309ccd4a003cae.zip
MADS: Implementing Scene::doFrame
Diffstat (limited to 'engines/mads/player.cpp')
-rw-r--r--engines/mads/player.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/engines/mads/player.cpp b/engines/mads/player.cpp
index 4130ad295f..b0f4b72667 100644
--- a/engines/mads/player.cpp
+++ b/engines/mads/player.cpp
@@ -84,8 +84,39 @@ void Player::resetActionList() {
warning("TODO: Player::resetActionList");
}
+void Player::setDest(const Common::Point &pt, int facing) {
+ warning("TODO: Player::setDest");
+}
+
+void Player::nextFrame() {
+ _priorTimer += _ticksAmount;
+ if (_vm->_events->_currentTimer >= _priorTimer) {
+ _priorTimer = _vm->_events->_currentTimer;
+ if (_moving) {
+ move();
+ } else {
+ idle();
+ }
+
+ postUpdate();
+ update();
+ }
+}
+
+void Player::move() {
+ warning("TODO: Player::move");
+}
+
void Player::idle() {
warning("TODO: Player::idle");
}
+void Player::postUpdate() {
+ warning("TODO: Player::postUpdate");
+}
+
+void Player::update() {
+ warning("TODO: Player::update");
+}
+
} // End of namespace MADS