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

Diff of /hegemonie/GameEngine/HgMobile.m

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

revision 1.7 by nicov, Mon Aug 18 10:29:25 2003 UTC revision 1.8 by nicov, Wed Aug 20 13:26:26 2003 UTC
# Line 39  Line 39 
39  /**  /**
40   * Initialize a new object mobile, with a given name, position,   * Initialize a new object mobile, with a given name, position,
41   * velocity, angularVelocity, acceleration, direction.   * velocity, angularVelocity, acceleration, direction.
42     * The HgPlayer's pointer is necessary to know the player who owes this object.
43     * If nobody owes this object, the pointer is nil.
44   */   */
45  - (id) initWithGame: (HgGame *)game  - (id) initWithGame: (HgGame *)game
46                 player: (HgPlayer *)player
47             position: (coord_t)position             position: (coord_t)position
48             velocity: (coord_t)velocity             velocity: (coord_t)velocity
49      angularVelocity: (coord_t)angularVelocity      angularVelocity: (coord_t)angularVelocity
# Line 48  Line 51 
51            direction: (float)direction            direction: (float)direction
52  {  {
53    NSParameterAssert (game);    NSParameterAssert (game);
54    
55    /* FIXME - check velocity, ... */    /* FIXME - check velocity, ... */
56    
57    [super initWithGame: game    [super initWithGame: game
58               withPlayer: player
59              position : position];              position : position];
60    if (self != nil)    if (self != nil)
61      {      {

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

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