diff options
author | whiterandrek | 2018-06-10 10:54:08 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2018-06-28 23:51:32 +0200 |
commit | 58e7d560eefa6e7cd86109f1d4b8227856cc01c8 (patch) | |
tree | 5ab267eb29c96c2cab6f7dcd4030f6aa7de12e83 /engines/pink/objects | |
parent | ccd0ec7ffb87a17dda58a00a2f6440cca2641997 (diff) | |
download | scummvm-rg350-58e7d560eefa6e7cd86109f1d4b8227856cc01c8.tar.gz scummvm-rg350-58e7d560eefa6e7cd86109f1d4b8227856cc01c8.tar.bz2 scummvm-rg350-58e7d560eefa6e7cd86109f1d4b8227856cc01c8.zip |
PINK: inline small functions
Diffstat (limited to 'engines/pink/objects')
26 files changed, 52 insertions, 233 deletions
diff --git a/engines/pink/objects/actions/action.cpp b/engines/pink/objects/actions/action.cpp index 107cff5eeb..24233ad253 100644 --- a/engines/pink/objects/actions/action.cpp +++ b/engines/pink/objects/actions/action.cpp @@ -41,8 +41,5 @@ Coordinates Action::getCoordinates() { return Coordinates(); } -Actor *Action::getActor() const { - return _actor; -} } // End of namespace Pink diff --git a/engines/pink/objects/actions/action.h b/engines/pink/objects/actions/action.h index a6e36dbf20..e3b4416a3d 100644 --- a/engines/pink/objects/actions/action.h +++ b/engines/pink/objects/actions/action.h @@ -43,7 +43,7 @@ public: virtual void pause(bool paused); virtual Coordinates getCoordinates(); - Actor *getActor() const; + Actor *getActor() const { return _actor; } protected: Actor *_actor; diff --git a/engines/pink/objects/actions/action_cel.cpp b/engines/pink/objects/actions/action_cel.cpp index 4b03f68739..7efd0778c4 100644 --- a/engines/pink/objects/actions/action_cel.cpp +++ b/engines/pink/objects/actions/action_cel.cpp @@ -82,14 +82,6 @@ void ActionCEL::pause(bool paused) { _decoder->pauseVideo(paused); } -uint32 ActionCEL::getZ() { - return _z; -} - -CelDecoder *ActionCEL::getDecoder() { - return _decoder; -} - Coordinates ActionCEL::getCoordinates() { if (!_decoder) _decoder = _actor->getPage()->loadCel(_fileName); diff --git a/engines/pink/objects/actions/action_cel.h b/engines/pink/objects/actions/action_cel.h index 355323da45..c67623ac47 100644 --- a/engines/pink/objects/actions/action_cel.h +++ b/engines/pink/objects/actions/action_cel.h @@ -47,8 +47,8 @@ public: Coordinates getCoordinates() override; - uint32 getZ(); - CelDecoder *getDecoder(); + uint32 getZ() { return _z; } + CelDecoder *getDecoder() { return _decoder; } protected: virtual void onStart() = 0; 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 diff --git a/engines/pink/objects/actors/actor.h b/engines/pink/objects/actors/actor.h index 6a4d19c117..2d42f37705 100644 --- a/engines/pink/objects/actors/actor.h +++ b/engines/pink/objects/actors/actor.h @@ -52,37 +52,35 @@ public: void toConsole() override ; - bool isPlaying(); + bool isPlaying() { return !_isActionEnded; } virtual void pause(bool paused); - void hide(); - void endAction(); + void endAction() { _isActionEnded = true; } - virtual bool isLeftClickHandlers(); - virtual bool isUseClickHandlers(InventoryItem *item); + virtual bool isLeftClickHandlers() { return false; } + virtual bool isUseClickHandlers(InventoryItem *item) { return false; } virtual void onMouseOver(const Common::Point point, CursorMgr *mgr); virtual void onHover(const Common::Point point, const Common::String &itemName, CursorMgr *cursorMgr); - virtual void onClick(); + virtual void onClick() {} - virtual void onTimerMessage(); - virtual bool onLeftClickMessage(); - virtual bool onUseClickMessage(InventoryItem *item, InventoryMgr *mgr); + virtual void onTimerMessage() {} + virtual bool onLeftClickMessage() { return false; } + virtual bool onUseClickMessage(InventoryItem *item, InventoryMgr *mgr) { return false; } Action *findAction(const Common::String &name); - Action *getAction() const; - Page *getPage() const; - Sequencer *getSequencer() const; + Action *getAction() const { return _action; } + Page *getPage() const { return _page; } virtual const Common::String &getLocation() const; - void setAction(const Common::String &name); + void setAction(const Common::String &name) { setAction(findAction(name)); } void setAction(Action *newAction); void setAction(Action *newAction, bool unk); - void setPage(Page *page); + void setPage(Page *page) { _page = page;} protected: Page *_page; diff --git a/engines/pink/objects/actors/lead_actor.cpp b/engines/pink/objects/actors/lead_actor.cpp index 96f6226a6b..c4e41b12c8 100644 --- a/engines/pink/objects/actors/lead_actor.cpp +++ b/engines/pink/objects/actors/lead_actor.cpp @@ -284,8 +284,6 @@ void LeadActor::onClick() { } } -void LeadActor::onVariableSet() {} - void LeadActor::onInventoryClosed(bool isItemClicked) { _isHaveItem = isItemClicked; _state = _stateCopy; @@ -329,10 +327,6 @@ void LeadActor::setNextExecutors(const Common::String &nextModule, const Common: } } -LeadActor::State LeadActor::getState() const { - return _state; -} - void LeadActor::forceUpdateCursor() { const Common::Point point = _page->getGame()->getEventManager()->getMousePos(); updateCursor(point); diff --git a/engines/pink/objects/actors/lead_actor.h b/engines/pink/objects/actors/lead_actor.h index 5428d48e91..5b2ea70b7c 100644 --- a/engines/pink/objects/actors/lead_actor.h +++ b/engines/pink/objects/actors/lead_actor.h @@ -76,7 +76,7 @@ public: void onMouseOver(const Common::Point point, CursorMgr *mgr) override; virtual void onClick(); - virtual void onVariableSet(); + virtual void onVariableSet() {} void onInventoryClosed(bool isItemClicked); void onWalkEnd(); void onPDAClose(); @@ -85,7 +85,7 @@ public: void setNextExecutors (const Common::String &nextModule, const Common::String &nextPage); - State getState() const; + State getState() const { return _state; } protected: void forceUpdateCursor(); diff --git a/engines/pink/objects/handlers/handler.cpp b/engines/pink/objects/handlers/handler.cpp index f27b79a5de..019d349527 100644 --- a/engines/pink/objects/handlers/handler.cpp +++ b/engines/pink/objects/handlers/handler.cpp @@ -71,7 +71,7 @@ void HandlerSequences::deserialize(Archive &archive) { void HandlerSequences::handle(Actor *actor) { Handler::handle(actor); - Sequencer *sequencer = actor->getSequencer(); + Sequencer *sequencer = actor->getPage()->getSequencer(); assert(!_sequences.empty()); diff --git a/engines/pink/objects/handlers/handler_timer.cpp b/engines/pink/objects/handlers/handler_timer.cpp index 57d217913e..46d3d579e4 100644 --- a/engines/pink/objects/handlers/handler_timer.cpp +++ b/engines/pink/objects/handlers/handler_timer.cpp @@ -95,7 +95,7 @@ void HandlerTimerSequences::toConsole() { void HandlerTimerSequences::handle(Actor *actor) { Handler::handle(actor); - Sequencer *sequencer = actor->getSequencer(); + Sequencer *sequencer = actor->getPage()->getSequencer(); assert(!_sequences.empty()); diff --git a/engines/pink/objects/inventory.cpp b/engines/pink/objects/inventory.cpp index 4836880ec5..2082869232 100644 --- a/engines/pink/objects/inventory.cpp +++ b/engines/pink/objects/inventory.cpp @@ -41,10 +41,6 @@ void Pink::InventoryItem::deserialize(Archive &archive) { _currentOwner = _initialOwner; } -Common::String &InventoryItem::getCurrentOwner() { - return _currentOwner; -} - void InventoryItem::toConsole() { debug("\tInventoryItem: _initialOwner=%s _currentOwner=%s", _initialOwner.c_str(), _currentOwner.c_str()); } @@ -68,10 +64,6 @@ InventoryItem *InventoryMgr::findInventoryItem(const Common::String &name) { return nullptr; } -void InventoryMgr::setLeadActor(LeadActor *lead) { - _lead = lead; -} - void InventoryMgr::toConsole() { debug("InventoryMgr:"); for (uint i = 0; i < _items.size(); ++i) { @@ -195,10 +187,6 @@ void InventoryMgr::showNextItem(bool direction) { } } -InventoryItem *InventoryMgr::getCurrentItem() { - return _item; -} - void InventoryMgr::loadState(Archive &archive) { _state = (State) archive.readByte(); _isClickedOnItem = archive.readByte(); diff --git a/engines/pink/objects/inventory.h b/engines/pink/objects/inventory.h index 104a8e80cb..836aa7f8a3 100644 --- a/engines/pink/objects/inventory.h +++ b/engines/pink/objects/inventory.h @@ -35,7 +35,7 @@ public: virtual void toConsole(); - Common::String &getCurrentOwner(); + const Common::String &getCurrentOwner() { return _currentOwner; } friend class InventoryMgr; private: @@ -61,13 +61,13 @@ public: bool start(bool playOpening); - void setLeadActor(LeadActor *lead); + void setLeadActor(LeadActor *lead) { _lead = lead; } InventoryItem* findInventoryItem(const Common::String &name); bool isPinkOwnsAnyItems(); void setItemOwner(const Common::String &owner, InventoryItem *item); - InventoryItem *getCurrentItem(); + InventoryItem *getCurrentItem() { return _item; } private: void close(); @@ -77,9 +77,6 @@ private: }; void showNextItem(bool direction); - - - LeadActor *_lead; Actor *_window; Actor *_itemActor; diff --git a/engines/pink/objects/module.cpp b/engines/pink/objects/module.cpp index a09e202fb3..30a1ae01be 100644 --- a/engines/pink/objects/module.cpp +++ b/engines/pink/objects/module.cpp @@ -82,24 +82,12 @@ GamePage *Module::findPage(const Common::String &pageName) const { return nullptr; } -PinkEngine *Module::getGame() const { - return _game; -} - bool Module::checkValueOfVariable(Common::String &variable, Common::String &value) { if (!_variables.contains(variable)) return value == kUndefined; return _variables[variable] == value; } -void Module::setVariable(Common::String &variable, Common::String &value) { - _variables[variable] = value; -} - -InventoryMgr *Module::getInventoryMgr() { - return &_invMgr; -} - void Module::loadState(Archive &archive) { _invMgr.loadState(archive); _variables.deserialize(archive); diff --git a/engines/pink/objects/module.h b/engines/pink/objects/module.h index 084fb19e93..819c19dc3d 100644 --- a/engines/pink/objects/module.h +++ b/engines/pink/objects/module.h @@ -57,13 +57,13 @@ public: void onMouseMove(); void onKeyboardButtonClick(); - PinkEngine *getGame() const; - InventoryMgr *getInventoryMgr(); + PinkEngine *getGame() const { return _game; } + InventoryMgr *getInventoryMgr() { return &_invMgr; } bool checkValueOfVariable(Common::String &variable, Common::String &value); - void setVariable(Common::String &variable, Common::String &value); + void setVariable(Common::String &variable, Common::String &value) { _variables[variable] = value; } - GamePage *getPage() { return _page; }; + GamePage *getPage() { return _page; } private: GamePage *findPage(const Common::String &pageName) const; diff --git a/engines/pink/objects/object.cpp b/engines/pink/objects/object.cpp index 0218cb70c8..570587dea9 100644 --- a/engines/pink/objects/object.cpp +++ b/engines/pink/objects/object.cpp @@ -20,33 +20,14 @@ * */ -#include "common/debug.h" - -#include "pink/archive.h" +#include "pink/objects/object.h" namespace Pink { -Object::~Object() {} - void Object::load(Archive &) {} void Object::deserialize(Archive &) {} -void Object::init() {} - void Object::toConsole() {} -NamedObject::NamedObject() {} - -NamedObject::NamedObject(const Common::String &name) - : _name(name) {} - -void NamedObject::deserialize(Archive &archive) { - _name = archive.readString(); -} - -const Common::String &NamedObject::getName() const { - return _name; -} - } // End of namespace Pink diff --git a/engines/pink/objects/object.h b/engines/pink/objects/object.h index 3f331f2f4b..7e90c05f4d 100644 --- a/engines/pink/objects/object.h +++ b/engines/pink/objects/object.h @@ -25,30 +25,28 @@ #include "common/str.h" -namespace Pink { +#include "pink/archive.h" -class Archive; +namespace Pink { class Object { public: - virtual ~Object(); + virtual ~Object() {}; virtual void load(Archive &); virtual void deserialize(Archive &); - - virtual void init(); - virtual void toConsole(); }; class NamedObject : public Object { public: - NamedObject(); - NamedObject(const Common::String &name); + NamedObject() {} + NamedObject(const Common::String &name) + : _name(name) {} - void deserialize(Archive &archive); + void deserialize(Archive &archive) { _name = archive.readString(); } - const Common::String &getName() const; + const Common::String &getName() const { return _name; } protected: Common::String _name; diff --git a/engines/pink/objects/pages/game_page.cpp b/engines/pink/objects/pages/game_page.cpp index 8ab1b0a077..35961164df 100644 --- a/engines/pink/objects/pages/game_page.cpp +++ b/engines/pink/objects/pages/game_page.cpp @@ -116,14 +116,6 @@ void GamePage::loadManagers() { } } -Sequencer *GamePage::getSequencer() { - return _sequencer; -} - -Module *GamePage::getModule() const { - return _module; -} - bool GamePage::checkValueOfVariable(const Common::String &variable, const Common::String &value) { if (!_variables.contains(variable)) return value == kUndefined; @@ -135,10 +127,6 @@ void GamePage::setVariable(Common::String &variable, Common::String &value) { _leadActor->onVariableSet(); } -WalkMgr *GamePage::getWalkMgr() { - return _walkMgr; -} - void GamePage::loadStateFromMem() { Archive archive(static_cast<Common::SeekableReadStream*>(_memFile)); _variables.deserialize(archive); diff --git a/engines/pink/objects/pages/game_page.h b/engines/pink/objects/pages/game_page.h index 3cd537d077..81d4686d1a 100644 --- a/engines/pink/objects/pages/game_page.h +++ b/engines/pink/objects/pages/game_page.h @@ -47,9 +47,9 @@ public: void loadManagers(); void init(bool isLoadingSave); - Sequencer *getSequencer(); - WalkMgr *getWalkMgr(); - Module *getModule() const; + Sequencer *getSequencer() { return _sequencer; } + WalkMgr *getWalkMgr() { return _walkMgr; } + Module *getModule() { return _module; } bool checkValueOfVariable(const Common::String &variable, const Common::String &value); void setVariable(Common::String &variable, Common::String &value); diff --git a/engines/pink/objects/pages/page.cpp b/engines/pink/objects/pages/page.cpp index bb93d17f93..c15d3dbae9 100644 --- a/engines/pink/objects/pages/page.cpp +++ b/engines/pink/objects/pages/page.cpp @@ -47,11 +47,6 @@ Actor *Page::findActor(const Common::String &name) { return nullptr; } - -CelDecoder *Page::loadCel(Common::String &fileName) { - return _resMgr.loadCEL(fileName); -} - void Page::toConsole() { for (uint i = 0; i < _actors.size(); ++i) { _actors[i]->toConsole(); @@ -72,10 +67,6 @@ void Page::initPallete() { } } -LeadActor *Page::getLeadActor() { - return _leadActor; -} - void Page::clear() { for (uint i = 0; i < _actors.size(); ++i) { delete _actors[i]; @@ -90,8 +81,4 @@ void Page::pause(bool paused) { } } -PinkEngine *Page::getGame() { - return _resMgr.getGame(); -} - } // End of namespace Pink diff --git a/engines/pink/objects/pages/page.h b/engines/pink/objects/pages/page.h index 9ccfe20166..bda4c147fa 100644 --- a/engines/pink/objects/pages/page.h +++ b/engines/pink/objects/pages/page.h @@ -44,19 +44,19 @@ public: void initPallete(); Actor *findActor(const Common::String &name); - LeadActor *getLeadActor(); + LeadActor *getLeadActor() { return _leadActor; } Common::SafeSeekableSubReadStream *getResourceStream(const Common::String &fileName) { return _resMgr.getResourceStream(fileName); } - CelDecoder *loadCel(Common::String &fileName); + CelDecoder *loadCel(Common::String &fileName) { return _resMgr.loadCEL(fileName); } virtual void clear(); void pause(bool paused); - PinkEngine *getGame(); + PinkEngine *getGame() { return _resMgr.getGame(); } virtual Sequencer *getSequencer() { return nullptr; } virtual WalkMgr *getWalkMgr() { return nullptr; } - virtual Module *getModule() const { return nullptr; } + virtual Module *getModule() { return nullptr; } virtual bool checkValueOfVariable(const Common::String &variable, const Common::String &value) { return 0; } virtual void setVariable(Common::String &variable, Common::String &value) {} diff --git a/engines/pink/objects/sequences/sequence.cpp b/engines/pink/objects/sequences/sequence.cpp index e7d5783050..35c2ef5301 100644 --- a/engines/pink/objects/sequences/sequence.cpp +++ b/engines/pink/objects/sequences/sequence.cpp @@ -57,14 +57,6 @@ void Sequence::toConsole() { } } -Common::Array<SequenceItem*> &Sequence::getItems() { - return _items; -} - -void Sequence::setContext(SequenceContext *context) { - _context = context; -} - void Sequence::init(int unk) { assert(_items.size()); assert(dynamic_cast<SequenceItemLeader*>(_items[0])); // first item must always be a leader diff --git a/engines/pink/objects/sequences/sequence.h b/engines/pink/objects/sequences/sequence.h index 93dcb25d26..c3439a1737 100644 --- a/engines/pink/objects/sequences/sequence.h +++ b/engines/pink/objects/sequences/sequence.h @@ -40,9 +40,9 @@ public: virtual void toConsole(); - Common::Array<SequenceItem *> &getItems(); + Common::Array<SequenceItem *> &getItems() { return _items; } - void setContext(SequenceContext *context); + void setContext(SequenceContext *context) { _context = context; } virtual void init(int unk); virtual void start(int unk); virtual void end(); diff --git a/engines/pink/objects/sequences/sequence_context.cpp b/engines/pink/objects/sequences/sequence_context.cpp index 200fcb416a..61ac13ce97 100644 --- a/engines/pink/objects/sequences/sequence_context.cpp +++ b/engines/pink/objects/sequences/sequence_context.cpp @@ -34,10 +34,6 @@ namespace Pink { SequenceActorState::SequenceActorState(const Common::String &name) :_actorName(name), _index(0) {} -const Common::String &SequenceActorState::getActor() const { - return _actorName; -} - void SequenceActorState::check(int index, Sequence *sequence, bool unk) { Actor *actor = sequence->_sequencer->_page->findActor(_actorName); debug("%s %s", _actorName.c_str(), _actionName.c_str()); @@ -71,22 +67,10 @@ SequenceContext::SequenceContext(Sequence *sequence, Sequencer *sequencer) } } -uint SequenceContext::getNextItemIndex() const { - return _nextItemIndex; -} - -Sequence *SequenceContext::getSequence() const { - return _sequence; -} - void SequenceContext::clearActionsFromActorStates() { for (uint i = 0; i < _states.size(); ++i) { _states[i]._actionName.clear(); } } -void SequenceContext::setNextItemIndex(int index) { - _nextItemIndex = index; -} - } // End of namespace Pink diff --git a/engines/pink/objects/sequences/sequence_context.h b/engines/pink/objects/sequences/sequence_context.h index e7acf093ea..5ba608154f 100644 --- a/engines/pink/objects/sequences/sequence_context.h +++ b/engines/pink/objects/sequences/sequence_context.h @@ -34,7 +34,7 @@ class SequenceActorState { public: SequenceActorState(const Common::String &name); - const Common::String &getActor() const; + const Common::String &getActor() const { return _actorName; } void check(int index, Sequence *sequence, bool unk); public: @@ -49,10 +49,10 @@ class SequenceContext { public: SequenceContext(Sequence *sequence, Sequencer* sequencer); - uint getNextItemIndex() const; - Sequence *getSequence() const; + uint getNextItemIndex() const { return _nextItemIndex; } + Sequence *getSequence() const { return _sequence; } - void setNextItemIndex(int index); + void setNextItemIndex(int index) { _nextItemIndex = index; } void clearActionsFromActorStates(); diff --git a/engines/pink/objects/sequences/sequence_item.cpp b/engines/pink/objects/sequences/sequence_item.cpp index 2d048b0b08..cd21a100da 100644 --- a/engines/pink/objects/sequences/sequence_item.cpp +++ b/engines/pink/objects/sequences/sequence_item.cpp @@ -42,14 +42,6 @@ void SequenceItem::toConsole() { debug("\t\t\t\tSequenceItem: _actor=%s, _action=%s", _actor.c_str(), _action.c_str()); } -const Common::String &SequenceItem::getActor() const { - return _actor; -} - -const Common::String &SequenceItem::getAction() const { - return _action; -} - bool SequenceItem::execute(int index, Sequence *sequence, bool unk2) { Actor *actor; Action *action; @@ -88,10 +80,6 @@ void SequenceItemLeaderAudio::toConsole() { debug("\t\t\t\tSequenceItemLeaderAudio: _actor=%s, _action=%s _sample=%d", _actor.c_str(), _action.c_str(), _sample); } -uint32 SequenceItemLeaderAudio::getSample() { - return _sample; -} - bool SequenceItemDefaultAction::execute(int index, Sequence *sequence, bool unk2) { SequenceActorState *state = sequence->_sequencer->findSequenceActorState(_actor); state->_actionName = _action; diff --git a/engines/pink/objects/sequences/sequence_item.h b/engines/pink/objects/sequences/sequence_item.h index df22f86fe5..d67e0f5939 100644 --- a/engines/pink/objects/sequences/sequence_item.h +++ b/engines/pink/objects/sequences/sequence_item.h @@ -35,8 +35,8 @@ public: virtual void toConsole(); - const Common::String &getActor() const; - const Common::String &getAction() const; + const Common::String &getActor() const { return _actor; } + const Common::String &getAction() const { return _action; } virtual bool execute(int index, Sequence *sequence, bool unk2); virtual bool isLeader(); @@ -57,7 +57,7 @@ class SequenceItemLeaderAudio : public SequenceItemLeader { public: virtual void deserialize(Archive &archive); virtual void toConsole(); - uint32 getSample(); + uint32 getSample() { return _sample; } private: uint32 _sample; @@ -81,6 +81,6 @@ private }; */ -} +} // End of namespace Pink #endif |