diff options
author | johndoe123 | 2014-03-11 16:41:40 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2018-07-20 06:43:33 +0000 |
commit | d92e713dea1dacce2bcc5acc842c8450191116e0 (patch) | |
tree | 817f3050c7832992197ad1ddb3a58c6d48ebe187 /engines | |
parent | 971c8a0a1ddbdeaee33cd3b0f7307a0db2b73b0a (diff) | |
download | scummvm-rg350-d92e713dea1dacce2bcc5acc842c8450191116e0.tar.gz scummvm-rg350-d92e713dea1dacce2bcc5acc842c8450191116e0.tar.bz2 scummvm-rg350-d92e713dea1dacce2bcc5acc842c8450191116e0.zip |
ILLUSIONS: Start with Actor
Diffstat (limited to 'engines')
-rw-r--r-- | engines/illusions/actor.cpp | 40 | ||||
-rw-r--r-- | engines/illusions/actor.h | 39 | ||||
-rw-r--r-- | engines/illusions/illusions.cpp | 1 | ||||
-rw-r--r-- | engines/illusions/module.mk | 1 |
4 files changed, 81 insertions, 0 deletions
diff --git a/engines/illusions/actor.cpp b/engines/illusions/actor.cpp new file mode 100644 index 0000000000..5185fda7e9 --- /dev/null +++ b/engines/illusions/actor.cpp @@ -0,0 +1,40 @@ +/* ScummVM - Graphic Adventure Engine + * + * ScummVM is the legal property of its developers, whose names + * are too numerous to list here. Please refer to the COPYRIGHT + * file distributed with this source distribution. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + */ + +#include "illusions/actor.h" + +namespace Illusions { + +Actor::Actor() + : _pauseCtr(0) { + +} + +void Actor::pause() { + ++_pauseCtr; +} + +void Actor::unpause() { + --_pauseCtr; +} + +} // End of namespace Illusions diff --git a/engines/illusions/actor.h b/engines/illusions/actor.h new file mode 100644 index 0000000000..2817b1df40 --- /dev/null +++ b/engines/illusions/actor.h @@ -0,0 +1,39 @@ +/* ScummVM - Graphic Adventure Engine + * + * ScummVM is the legal property of its developers, whose names + * are too numerous to list here. Please refer to the COPYRIGHT + * file distributed with this source distribution. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + */ + +#ifndef ILLUSIONS_ACTOR_H +#define ILLUSIONS_ACTOR_H + +namespace Illusions { + +class Actor { +public: + Actor(); + void pause(); + void unpause(); +protected: + int _pauseCtr; +}; + +} // End of namespace Illusions + +#endif // ILLUSIONS_ACTOR_H diff --git a/engines/illusions/illusions.cpp b/engines/illusions/illusions.cpp index 67887ad00b..69d57bd7d0 100644 --- a/engines/illusions/illusions.cpp +++ b/engines/illusions/illusions.cpp @@ -29,6 +29,7 @@ #include "illusions/updatefunctions.h" #include "illusions/spritedrawqueue.h" #include "illusions/spritedecompressqueue.h" +#include "illusions/actor.h" #include "audio/audiostream.h" #include "common/config-manager.h" diff --git a/engines/illusions/module.mk b/engines/illusions/module.mk index f470e88606..4a409e165a 100644 --- a/engines/illusions/module.mk +++ b/engines/illusions/module.mk @@ -1,6 +1,7 @@ MODULE := engines/illusions MODULE_OBJS := \ + actor.o \ backgroundresource.o \ camera.o \ detection.o \ |