aboutsummaryrefslogtreecommitdiff
path: root/engines/pink/objects/actors/actor.cpp
diff options
context:
space:
mode:
authorwhiterandrek2018-06-10 10:54:08 +0300
committerEugene Sandulenko2018-06-28 23:51:32 +0200
commit58e7d560eefa6e7cd86109f1d4b8227856cc01c8 (patch)
tree5ab267eb29c96c2cab6f7dcd4030f6aa7de12e83 /engines/pink/objects/actors/actor.cpp
parentccd0ec7ffb87a17dda58a00a2f6440cca2641997 (diff)
downloadscummvm-rg350-58e7d560eefa6e7cd86109f1d4b8227856cc01c8.tar.gz
scummvm-rg350-58e7d560eefa6e7cd86109f1d4b8227856cc01c8.tar.bz2
scummvm-rg350-58e7d560eefa6e7cd86109f1d4b8227856cc01c8.zip
PINK: inline small functions
Diffstat (limited to 'engines/pink/objects/actors/actor.cpp')
-rw-r--r--engines/pink/objects/actors/actor.cpp53
1 files changed, 0 insertions, 53 deletions
diff --git a/engines/pink/objects/actors/actor.cpp b/engines/pink/objects/actors/actor.cpp
index fe44728df0..25e2a85a0a 100644
--- a/engines/pink/objects/actors/actor.cpp
+++ b/engines/pink/objects/actors/actor.cpp
@@ -86,31 +86,11 @@ void Actor::toConsole() {
}
}
-bool Actor::isPlaying() {
- return !_isActionEnded;
-}
-
void Actor::pause(bool paused) {
if (_action)
_action->pause(paused);
}
-void Actor::hide() {
- setAction(kHideAction);
-}
-
-void Actor::endAction() {
- _isActionEnded = 1;
-}
-
-bool Actor::isLeftClickHandlers() {
- return false;
-}
-
-bool Actor::isUseClickHandlers(InventoryItem *item) {
- return false;
-}
-
void Actor::onMouseOver(const Common::Point point, CursorMgr *mgr) {
mgr->setCursor(kDefaultCursor, point, Common::String());
}
@@ -119,18 +99,6 @@ void Actor::onHover(const Common::Point point, const Common::String &itemName, C
cursorMgr->setCursor(kHoldingItemCursor, point, itemName);
}
-void Actor::onClick() {}
-
-void Actor::onTimerMessage() {}
-
-bool Actor::onLeftClickMessage() {
- return false;
-}
-
-bool Actor::onUseClickMessage(InventoryItem *item, InventoryMgr *mgr) {
- return false;
-}
-
Action *Actor::findAction(const Common::String &name) {
for (uint i = 0; i < _actions.size(); ++i) {
if (_actions[i]->getName() == name)
@@ -139,28 +107,11 @@ Action *Actor::findAction(const Common::String &name) {
return nullptr;
}
-Action *Actor::getAction() const {
- return _action;
-}
-
-Page *Actor::getPage() const {
- return _page;
-}
-
-Sequencer *Actor::getSequencer() const {
- return _page->getSequencer();
-}
-
const Common::String &Actor::getLocation() const {
static const Common::String empty;
return empty;
}
-void Actor::setAction(const Common::String &name) {
- Action *newAction = findAction(name);
- setAction(newAction);
-}
-
void Actor::setAction(Action *newAction) {
if (_action) {
_isActionEnded = 1;
@@ -183,8 +134,4 @@ void Actor::setAction(Action *newAction, bool unk) {
}
}
-void Actor::setPage(Page *page) {
- _page = page;
-}
-
} // End of namespace Pink