| 
                Last change
                  on this file since 246 was
                  232,
                  checked in by rgrieder, 18 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:
            587 bytes
           | 
      
      
        
  | Line |   | 
|---|
| 1 | #ifndef _ObjectList_H__ | 
|---|
| 2 | #define _ObjectList_H__ | 
|---|
| 3 |  | 
|---|
| 4 | namespace orxonox | 
|---|
| 5 | { | 
|---|
| 6 |     class OrxonoxClass; | 
|---|
| 7 |  | 
|---|
| 8 |     class ObjectListElement | 
|---|
| 9 |     { | 
|---|
| 10 |         public: | 
|---|
| 11 |             ObjectListElement(OrxonoxClass* object); | 
|---|
| 12 |             ~ObjectListElement(); | 
|---|
| 13 |  | 
|---|
| 14 |             OrxonoxClass* object_; | 
|---|
| 15 |             ObjectListElement* next_; | 
|---|
| 16 |     }; | 
|---|
| 17 |  | 
|---|
| 18 |     class ObjectList | 
|---|
| 19 |     { | 
|---|
| 20 |         public: | 
|---|
| 21 |             ObjectList(); | 
|---|
| 22 |             ~ObjectList(); | 
|---|
| 23 |             void add(OrxonoxClass* object); | 
|---|
| 24 |             void remove(OrxonoxClass* object); | 
|---|
| 25 |  | 
|---|
| 26 |             ObjectListElement* first_; | 
|---|
| 27 |     }; | 
|---|
| 28 | } | 
|---|
| 29 |  | 
|---|
| 30 | #endif | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.