Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/main_reto_vs05/src/class_hierarchy/IdentifierList.h @ 232

Last change on this file since 232 was 232, checked in by rgrieder, 17 years ago
  • modified the AmmunitionDump to hold different types of ammo
  • converted the RunManager into a Singleton
  • added some methods to address ammo by string
  • created a BaseWeapon class
  • derived BarrelGun from BaseWeapon
File size: 771 bytes
Line 
1#ifndef _IdentifierList_H__
2#define _IdentifierList_H__
3
4#include <string>
5
6namespace orxonox
7{
8    class Identifier;
9
10    class IdentifierListElement
11    {
12        public:
13            IdentifierListElement(Identifier* identifier);
14            ~IdentifierListElement();
15
16            Identifier* identifier_;
17            IdentifierListElement* next_;
18            bool bDirect_;
19    };
20
21    class IdentifierList
22    {
23        public:
24            IdentifierList();
25            ~IdentifierList();
26            void add(Identifier* identifier);
27            void remove(Identifier* identifier);
28            bool isInList(Identifier* identifier);
29            std::string toString();
30
31            IdentifierListElement* first_;
32    };
33}
34
35#endif
Note: See TracBrowser for help on using the repository browser.