aboutsummaryrefslogtreecommitdiff
path: root/engines/pink/objects/actions/action_cel.cpp
diff options
context:
space:
mode:
authorwhiterandrek2018-05-22 08:03:37 +0300
committerEugene Sandulenko2018-06-28 23:51:32 +0200
commit82974a9ce37aba6240f7c3543947631170f012c2 (patch)
tree6aeed5f5edfb1c758b2c18b8ac224bde40eaff8c /engines/pink/objects/actions/action_cel.cpp
parent931d6adbcbbe063857814dc76886e9a967b2a4f3 (diff)
downloadscummvm-rg350-82974a9ce37aba6240f7c3543947631170f012c2.tar.gz
scummvm-rg350-82974a9ce37aba6240f7c3543947631170f012c2.tar.bz2
scummvm-rg350-82974a9ce37aba6240f7c3543947631170f012c2.zip
PINK: fix indentation
Diffstat (limited to 'engines/pink/objects/actions/action_cel.cpp')
-rw-r--r--engines/pink/objects/actions/action_cel.cpp50
1 files changed, 25 insertions, 25 deletions
diff --git a/engines/pink/objects/actions/action_cel.cpp b/engines/pink/objects/actions/action_cel.cpp
index 352c635d68..f38c127782 100644
--- a/engines/pink/objects/actions/action_cel.cpp
+++ b/engines/pink/objects/actions/action_cel.cpp
@@ -32,64 +32,64 @@
namespace Pink {
ActionCEL::ActionCEL()
- : _decoder(nullptr) {
+ : _decoder(nullptr) {
}
void ActionCEL::deserialize(Archive &archive) {
- Action::deserialize(archive);
- _fileName = archive.readString();
- _z = archive.readDWORD();
+ Action::deserialize(archive);
+ _fileName = archive.readString();
+ _z = archive.readDWORD();
}
void ActionCEL::start(bool unk) {
- if (!_decoder)
- _decoder = _actor->getPage()->loadCel(_fileName);
- _actor->getPage()->getGame()->getDirector()->addSprite(this);
+ if (!_decoder)
+ _decoder = _actor->getPage()->loadCel(_fileName);
+ _actor->getPage()->getGame()->getDirector()->addSprite(this);
- this->onStart();
+ this->onStart();
}
void ActionCEL::end() {
- _actor->getPage()->getGame()->getDirector()->removeSprite(this);
- delete _decoder;
- _decoder = nullptr;
+ _actor->getPage()->getGame()->getDirector()->removeSprite(this);
+ delete _decoder;
+ _decoder = nullptr;
}
uint32 ActionCEL::getZ() {
- return _z;
+ return _z;
}
CelDecoder *ActionCEL::getDecoder() {
- return _decoder;
+ return _decoder;
}
bool ActionCEL::initPalette(Director *director) {
- _decoder = _actor->getPage()->loadCel(_fileName);
- _decoder->decodeNextFrame();
- _decoder->rewind();
- director->setPallette(_decoder->getPalette());
+ _decoder = _actor->getPage()->loadCel(_fileName);
+ _decoder->decodeNextFrame();
+ _decoder->rewind();
+ director->setPallette(_decoder->getPalette());
- return 1;
+ return 1;
}
void ActionCEL::update() {
- if (_decoder->endOfVideo()){
- _decoder->stop();
- _actor->endAction();
- }
+ if (_decoder->endOfVideo()){
+ _decoder->stop();
+ _actor->endAction();
+ }
}
ActionCEL::~ActionCEL() {
- end();
+ end();
}
void ActionCEL::pause() {
- _decoder->pauseVideo(1);
+ _decoder->pauseVideo(1);
}
void ActionCEL::unpause() {
- _decoder->pauseVideo(0);
+ _decoder->pauseVideo(0);
}
} // End of namespace Pink