/[hegemonie]/hegemonie/GameEngine/HgGame.m
ViewVC logotype

Diff of /hegemonie/GameEngine/HgGame.m

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.12 by nicov, Wed Aug 13 15:49:29 2003 UTC revision 1.13 by dam, Fri Aug 15 20:43:21 2003 UTC
# Line 32  Line 32 
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  /**  /**
# Line 69  Line 70 
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];
# Line 174  Line 174 
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  }  }

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26