Decal Class Reference

A decorative image, perhaps part of the terrain. More...

#include <decal.hpp>

Inherits MovingSprite.

List of all members.

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


Detailed Description

A decorative image, perhaps part of the terrain.

Definition at line 26 of file decal.hpp.


Constructor & Destructor Documentation

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 }

Decal::~Decal (  )  [virtual]

Definition at line 35 of file decal.cpp.

00036 {
00037 }


Member Function Documentation

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   }


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