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 |
|
|
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 |
|
|
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 |
|
|