/[enigma]/enigma/src/objects.hh
ViewVC logotype

Diff of /enigma/src/objects.hh

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

revision 1.4 by dheck, Sun Jan 12 19:40:44 2003 UTC revision 1.5 by dheck, Sun Jan 19 17:29:29 2003 UTC
# Line 266  namespace world Line 266  namespace world
266          Stone(const char *kind);          Stone(const char *kind);
267    
268          // Stone interface          // Stone interface
269          virtual StoneResponse   collision_response(const StoneContact &sc);          virtual StoneResponse  collision_response(const StoneContact &sc);
270          virtual px::V3          actor_impulse (const StoneContact &sc);          virtual px::V3         actor_impulse (const StoneContact &sc);
271          virtual void            actor_hit (const StoneContact &sc);          virtual void           actor_hit (const StoneContact &sc);
272          virtual void            actor_inside (Actor *a) {}          virtual void           actor_inside (Actor *a) {}
273          virtual void            actor_contact (Actor *a) {}          virtual void           actor_contact (Actor *a) {}
274          virtual bool            is_movable() { return false;}          virtual bool           is_movable() { return false;}
275          virtual void            on_move() {}          virtual void           on_move() {}
276          virtual const char *    collision_sound();          virtual const char    *collision_sound();
277      };      };
278  }  }
279    
# Line 308  namespace world Line 308  namespace world
308          void move();          void move();
309          void warp(const px::V3 &newpos);          void warp(const px::V3 &newpos);
310    
   
311          void respawn();          void respawn();
312          void add_force (const px::V3 &f) {          void add_force (const px::V3 &f);
             actorinfo.forceacc += f;  
         }  
313    
314          display::SpriteId get_spriteid() const { return sprite_id; }          display::SpriteId get_spriteid() const { return sprite_id; }
315    
# Line 343  namespace world Line 340  namespace world
340         "action" and "target" attributes of `o'. */         "action" and "target" attributes of `o'. */
341      void PerformAction(Object *o, bool onoff);      void PerformAction(Object *o, bool onoff);
342    
343      Object *    MakeObject(const char *kind);      Object *MakeObject (const char *kind);
344      Floor *     MakeFloor(const char *kind);      Floor  *MakeFloor (const char *kind);
345      Item *      MakeItem(const char *kind);      Item   *MakeItem (const char *kind);
346      Stone *     MakeStone (const char *kind);      Stone  *MakeStone (const char *kind);
347    
348      void DisposeObject(Object *o);      void DisposeObject(Object *o);
349    

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

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