#include <invisible_wall.hpp>
Inherits MovingSprite.
Public Member Functions | |
InvisibleWall (const Reader &lisp) | |
HitResponse | collision (GameObject &other, const CollisionHit &hit) |
this function is called when the object collided with any other object | |
Private Attributes | |
Physic | physic |
float | width |
float | height |
Definition at line 26 of file invisible_wall.hpp.
InvisibleWall::InvisibleWall | ( | const Reader & | lisp | ) |
Definition at line 22 of file invisible_wall.cpp.
References MovingObject::bbox, lisp::Lisp::get(), height, Rectf::set_size(), and width.
00022 : 00023 MovingSprite(lisp, "images/objects/invisible/invisible.sprite", LAYER_TILES, COLGROUP_STATIC), 00024 physic(), 00025 width(32), 00026 height(32) 00027 { 00028 lisp.get("width", width); 00029 lisp.get("height", height); 00030 bbox.set_size(width, height); 00031 }
HitResponse InvisibleWall::collision | ( | GameObject & | other, | |
const CollisionHit & | hit | |||
) | [virtual] |
this function is called when the object collided with any other object
Implements MovingObject.
Definition at line 34 of file invisible_wall.cpp.
References FORCE_MOVE.
00035 { 00036 return FORCE_MOVE; 00037 }
Physic InvisibleWall::physic [private] |
Definition at line 34 of file invisible_wall.hpp.
float InvisibleWall::width [private] |
float InvisibleWall::height [private] |