/[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.6 by dheck, Thu Jan 23 22:41:00 2003 UTC revision 1.7 by dheck, Sun Feb 2 18:20:49 2003 UTC
# Line 227  namespace world Line 227  namespace world
227      public:      public:
228          Item(const char *kind);          Item(const char *kind);
229    
230            //
231          // Item interface          // Item interface
232          virtual px::V3 get_force(Actor *a)          //
         { return px::V3(); }  
233    
234          virtual void on_drop(Actor *a) {}          virtual px::V3 get_force(Actor *a);
         virtual void on_pickup(Actor *a) {}  
235    
236          virtual void stone_change(Stone *st) {}          virtual void on_drop(Actor *a);
237            virtual void on_pickup(Actor *a);
238    
239            virtual void stone_change(Stone *st);
240    
241            // Called when item is ``hit'' by a moving stone.
242            virtual void on_stonehit(Stone *st);
243    
244          // Return true if the item should be picked up.          // Return true if the item should be picked up.
245          virtual bool actor_hit(Actor *a);          virtual bool actor_hit(Actor *a);
# Line 243  namespace world Line 248  namespace world
248          virtual string get_inventory_model();          virtual string get_inventory_model();
249    
250          // Item is activated by the player          // Item is activated by the player
251          virtual ItemAction activate(Actor* a, GridPos p)          virtual ItemAction activate(Actor* a, GridPos p);
         { return ITEM_DROP; }  
252      };      };
253  }  }
254    

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

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