#include <decal.hpp>
Inherits MovingSprite.
Public Member Functions | |
Decal (const Reader &reader) | |
virtual | ~Decal () |
virtual HitResponse | collision (GameObject &, const CollisionHit &) |
this function is called when the object collided with any other object |
Definition at line 26 of file decal.hpp.
Decal::Decal | ( | const Reader & | reader | ) |
Definition at line 21 of file decal.cpp.
References COLGROUP_STATIC, lisp::Lisp::get(), MovingSprite::layer, LAYER_OBJECTS, reader_get_layer(), MovingSprite::set_action(), and MovingObject::set_group().
00021 : 00022 MovingSprite(reader, LAYER_OBJECTS, COLGROUP_DISABLED) 00023 { 00024 layer = reader_get_layer (reader, /* default = */ LAYER_OBJECTS); 00025 00026 bool solid = false; 00027 reader.get("solid", solid); 00028 if(solid) 00029 set_group(COLGROUP_STATIC); 00030 std::string action; 00031 if(reader.get("action", action)) 00032 set_action(action, -1); 00033 }
virtual HitResponse Decal::collision | ( | GameObject & | , | |
const CollisionHit & | ||||
) | [inline, virtual] |
this function is called when the object collided with any other object
Implements MovingObject.
Definition at line 31 of file decal.hpp.
References FORCE_MOVE.
00031 { 00032 return FORCE_MOVE; 00033 }