Last change
on this file since 9838 was
2036,
checked in by patrick, 20 years ago
|
orxonxo/trunk/src: extended framework: class inheritance, right including (had som bugs), framework not finished yet
|
File size:
496 bytes
|
Line | |
---|
1 | |
---|
2 | #ifndef LIST_H |
---|
3 | #define LIST_H |
---|
4 | |
---|
5 | #include "list.h" |
---|
6 | |
---|
7 | class WorldEntity; |
---|
8 | |
---|
9 | class List { |
---|
10 | |
---|
11 | public: |
---|
12 | List (); |
---|
13 | ~List (); |
---|
14 | |
---|
15 | void addElement(WorldEntity* we); |
---|
16 | void removeElement(WorldEntity* we); |
---|
17 | WorldEntity* getElement(int number); |
---|
18 | int getNrOfElement(WorldEntity* we); |
---|
19 | void defragment(); |
---|
20 | void flushList(); |
---|
21 | void killList(); |
---|
22 | |
---|
23 | private: |
---|
24 | struct listElement { |
---|
25 | WorldEntity* we; |
---|
26 | listElement* next; |
---|
27 | listElement* prev; |
---|
28 | }; |
---|
29 | listElement* lastElement; |
---|
30 | int listSize; |
---|
31 | |
---|
32 | |
---|
33 | }; |
---|
34 | |
---|
35 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.