InvisibleWall Class Reference

A tile that starts falling down if tux stands to long on it. More...

#include <invisible_wall.hpp>

Inherits MovingSprite.

List of all members.

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


Detailed Description

A tile that starts falling down if tux stands to long on it.

Definition at line 26 of file invisible_wall.hpp.


Constructor & Destructor Documentation

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 }


Member Function Documentation

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 }


Member Data Documentation

Physic InvisibleWall::physic [private]

Definition at line 34 of file invisible_wall.hpp.

float InvisibleWall::width [private]

Definition at line 35 of file invisible_wall.hpp.

Referenced by InvisibleWall().

float InvisibleWall::height [private]

Definition at line 35 of file invisible_wall.hpp.

Referenced by InvisibleWall().


The documentation for this class was generated from the following files:
Generated on Mon Jun 9 03:38:31 2014 for SuperTux by  doxygen 1.5.1