32 |
#include "GameEngine/HgPlayer.h" |
#include "GameEngine/HgPlayer.h" |
33 |
#include "GameEngine/HgObject.h" |
#include "GameEngine/HgObject.h" |
34 |
#include "GameEngine/HgTeam.h" |
#include "GameEngine/HgTeam.h" |
35 |
|
#include "Map/MapTerrain.h" |
36 |
|
|
37 |
|
|
38 |
/** |
/** |
70 |
RELEASE(_name); |
RELEASE(_name); |
71 |
RELEASE(_players); |
RELEASE(_players); |
72 |
RELEASE(_teams); |
RELEASE(_teams); |
73 |
/* FIXME - map not declared */ |
RELEASE(_map); |
|
//TEST_RELEASE(_map); |
|
74 |
RELEASE(_objects); |
RELEASE(_objects); |
75 |
|
|
76 |
[super dealloc]; |
[super dealloc]; |
174 |
* Change current map |
* Change current map |
175 |
* crash if the new map doesn't exist. |
* crash if the new map doesn't exist. |
176 |
*/ |
*/ |
177 |
- (void) setMap: (HgMap *)map |
- (void) setMap: (MapTerrain *)map |
178 |
{ |
{ |
179 |
/* FIXME - map is not declared */ |
NSParameterAssert (map); |
180 |
|
|
181 |
/* |
_map = RETAIN(map); |
|
NSParameterAssert (map); |
|
|
|
|
|
if (_map) |
|
|
RELEASE(_map); |
|
|
_map = RETAIN(map);*/ |
|
182 |
} |
} |
183 |
|
|
184 |
/** |
/** |
185 |
* Return the current map. |
* Return the current map. |
186 |
*/ |
*/ |
187 |
- (HgMap *) map |
- (MapTerrain *) map |
188 |
{ |
{ |
189 |
return _map; |
return _map; |
190 |
} |
} |