Introduced FileSystem and Out classes
[openstranded.git] / src / item.cc
blob78254c9c5b72f00d91234c7939d758e244f70a6c
1 /*
2 * This file includes the implementation of the item specific classes
4 * Copyright (C) 2008 David Kolossa
6 * This file is part of OpenStranded
8 * OpenStranded is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or
11 * (at your option) any later version.
13 * OpenStranded is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with OpenStranded. If not, see <http://www.gnu.org/licenses/>.
22 #include "item.hh"
25 * These are the declarations of the ItemEntity class
28 ItemEntity::ItemEntity (ID type):
29 Entity(type)
34 * These are the declarations of the ItemType class
37 ItemType::ItemType (const char* name):
38 Type(name)
43 * ItemKingdom class methods
46 ItemKingdom::ItemKingdom ():
47 Kingdom ("item")
51 Entity*
52 ItemKingdom::createEntity (ID type)
54 return new ItemEntity (type);
58 Type*
59 ItemKingdom::createType (const char* name)
61 return new ItemType (name);