diff options
author | johndoe123 | 2011-06-27 17:09:55 +0000 |
---|---|---|
committer | Willem Jan Palenstijn | 2013-05-08 20:30:57 +0200 |
commit | 4a01a69e37633aad402cea8477d812df4391a84d (patch) | |
tree | d66823d4daa1a74549adda2c5c714ffeab2a6ab3 /engines/neverhood/gamemodule.h | |
parent | eb5ab30ce0ca0cfb58eed5a434f2252afc9718f7 (diff) | |
download | scummvm-rg350-4a01a69e37633aad402cea8477d812df4391a84d.tar.gz scummvm-rg350-4a01a69e37633aad402cea8477d812df4391a84d.tar.bz2 scummvm-rg350-4a01a69e37633aad402cea8477d812df4391a84d.zip |
NEVERHOOD: Start with Module and GameModule classes
Diffstat (limited to 'engines/neverhood/gamemodule.h')
-rw-r--r-- | engines/neverhood/gamemodule.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/engines/neverhood/gamemodule.h b/engines/neverhood/gamemodule.h new file mode 100644 index 0000000000..6f47fb6f65 --- /dev/null +++ b/engines/neverhood/gamemodule.h @@ -0,0 +1,56 @@ +/* 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. + * + */ + +// TODO: I couldn't come up with a better name than 'Module' so far + +#ifndef NEVERHOOD_GAMEMODULE_H +#define NEVERHOOD_GAMEMODULE_H + +#include "neverhood/neverhood.h" +#include "neverhood/module.h" + +namespace Neverhood { + +class GameModule : public Module { +public: + GameModule(NeverhoodEngine *vm); + virtual ~GameModule(); +protected: + Entity *_prevChildObject; + bool _someFlag1; + bool _field2C; + uint32 _counter; + /* TODO + ResourceTable _resourceTable1; + ResourceTable _resourceTable2; + ResourceTable _resourceTable3; + ResourceTable _resourceTable4; + */ + uint32 handleMessage(int messageNum, const MessageParam ¶m, Entity *sender); + void startup(); + void createModule1500(int which); + void updateModule1500(); +}; + +} // End of namespace Neverhood + +#endif /* NEVERHOOD_MODULE_H */ |