1
// Copyright (c) 2003 Rob Kaper <cap@capsi.com>
3
// This program is free software; you can redistribute it and/or
4
// modify it under the terms of the GNU General Public License
5
// version 2 as published by the Free Software Foundation.
7
// This program is distributed in the hope that it will be useful,
8
// but WITHOUT ANY WARRANTY; without even the implied warranty of
9
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10
// General Public License for more details.
12
// You should have received a copy of the GNU General Public License
13
// along with this program; see the file COPYING. If not, write to
14
// the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
15
// Boston, MA 02111-1307, USA.
17
#ifndef ATLANTIC_GAMEPROPERTY_H
18
#define ATLANTIC_GAMEPROPERTY_H
27
GameProperty(const std::string &key, GameObject *m_scope);
28
std::string key() const;
29
// void setScope(GameObject *scope);
31
void setChanged(const bool &changed);
40
class GameIntProperty : public GameProperty
43
GameIntProperty(const std::string &key, int value, GameObject *scope);
44
bool setValue(int value);
51
class GameStringProperty : public GameProperty
54
GameStringProperty(const std::string &key, const std::string &value, GameObject *scope);
55
bool setValue(const std::string &value);
56
std::string value() const;
62
class GameBoolProperty : public GameProperty
65
GameBoolProperty(const std::string &key, const bool &value, GameObject *scope);
66
bool setValue(const bool &value);