diff options
author | Paul Gilbert | 2016-02-28 21:42:13 -0500 |
---|---|---|
committer | Paul Gilbert | 2016-02-28 21:42:13 -0500 |
commit | 6eb777fe362d77189425c2ae137bedab0af5ee5f (patch) | |
tree | 2df00b84121ccb83115cacd8a62ef686e125dbfc /engines/titanic/game/parrot | |
parent | 0471a25575d7cabff26f8abbace55c1dadaf6320 (diff) | |
download | scummvm-rg350-6eb777fe362d77189425c2ae137bedab0af5ee5f.tar.gz scummvm-rg350-6eb777fe362d77189425c2ae137bedab0af5ee5f.tar.bz2 scummvm-rg350-6eb777fe362d77189425c2ae137bedab0af5ee5f.zip |
TITANIC: Added a lot of class definitions
Let's be honest here, it's a s**t-load of class definitions
Diffstat (limited to 'engines/titanic/game/parrot')
-rw-r--r-- | engines/titanic/game/parrot/parrot_lobby_link_updater.cpp | 4 | ||||
-rw-r--r-- | engines/titanic/game/parrot/player_meets_parrot.cpp | 37 | ||||
-rw-r--r-- | engines/titanic/game/parrot/player_meets_parrot.h | 50 |
3 files changed, 89 insertions, 2 deletions
diff --git a/engines/titanic/game/parrot/parrot_lobby_link_updater.cpp b/engines/titanic/game/parrot/parrot_lobby_link_updater.cpp index 912495dbd8..e62e9dde48 100644 --- a/engines/titanic/game/parrot/parrot_lobby_link_updater.cpp +++ b/engines/titanic/game/parrot/parrot_lobby_link_updater.cpp @@ -26,12 +26,12 @@ namespace Titanic { void CParrotLobbyLinkUpdater::save(SimpleFile *file, int indent) const { file->writeNumberLine(1, indent); - CGameObject::save(file, indent); + CParrotLobbyObject::save(file, indent); } void CParrotLobbyLinkUpdater::load(SimpleFile *file) { file->readNumber(); - CGameObject::load(file); + CParrotLobbyObject::load(file); } } // End of namespace Titanic diff --git a/engines/titanic/game/parrot/player_meets_parrot.cpp b/engines/titanic/game/parrot/player_meets_parrot.cpp new file mode 100644 index 0000000000..1d7bd657ac --- /dev/null +++ b/engines/titanic/game/parrot/player_meets_parrot.cpp @@ -0,0 +1,37 @@ +/* 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 "titanic/game/parrot/player_meets_parrot.h" + +namespace Titanic { + +void CPlayerMeetsParrot::save(SimpleFile *file, int indent) const { + file->writeNumberLine(1, indent); + CGameObject::save(file, indent); +} + +void CPlayerMeetsParrot::load(SimpleFile *file) { + file->readNumber(); + CGameObject::load(file); +} + +} // End of namespace Titanic diff --git a/engines/titanic/game/parrot/player_meets_parrot.h b/engines/titanic/game/parrot/player_meets_parrot.h new file mode 100644 index 0000000000..685e67a95d --- /dev/null +++ b/engines/titanic/game/parrot/player_meets_parrot.h @@ -0,0 +1,50 @@ +/* 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 TITANIC_PLAYER_MEETS_PARROT_H +#define TITANIC_PLAYER_MEETS_PARROT_H + +#include "titanic/core/game_object.h" + +namespace Titanic { + +class CPlayerMeetsParrot : public CGameObject { +public: + /** + * Return the class name + */ + virtual const char *getClassName() const { return "CPlayerMeetsParrot"; } + + /** + * Save the data for the class to file + */ + virtual void save(SimpleFile *file, int indent) const; + + /** + * Load the data for the class from file + */ + virtual void load(SimpleFile *file); +}; + +} // End of namespace Titanic + +#endif /* TITANIC_PLAYER_MEETS_PARROT_H */ |