#include <Wall.h>
Inherits MapObject.
Inheritance diagram for Wall:
Definition at line 9 of file Wall.h.
Public Member Functions | |
void | destroy () |
void | draw (Point position, Point dimensions) const |
bool | isPassable (Direction dir) const |
bool | isPassable () const |
Wall (Direction dir) | |
~Wall () | |
Public Attributes | |
Direction | _dir |
spMapTile | tile1 |
spMapTile | tile2 |
Private Attributes | |
bool | _destroyed |
Static Private Attributes | |
static SDL_Surface * | _image = NULL |
static SDL_Surface * | _imageNE = NULL |
static SDL_Surface * | _imageNW = NULL |
static SDL_Surface * | _imageSE = NULL |
static SDL_Surface * | _imageSW = NULL |
Wall::Wall | ( | Direction | dir | ) |
Definition at line 16 of file Wall.cpp.
References _image, _imageNE, _imageNW, _imageSE, _imageSW, Singleton< T >::instance(), WALL_IMAGE, WALL_IMAGENE, WALL_IMAGENW, WALL_IMAGESE, and WALL_IMAGESW.
Here is the call graph for this function:
Implements MapObject.
Definition at line 49 of file Wall.cpp.
References _dir, _image, _imageNE, _imageNW, _imageSE, _imageSW, Singleton< T >::instance(), Direction::NE, Direction::NW, Direction::SE, Direction::SW, Point::x, and Point::y.
Here is the call graph for this function:
bool Wall::isPassable | ( | Direction | dir | ) | const [virtual] |
bool Wall::isPassable | ( | ) | const [virtual] |
bool Wall::_destroyed [private] |
SDL_Surface * Wall::_image = NULL [static, private] |
SDL_Surface * Wall::_imageNE = NULL [static, private] |
SDL_Surface * Wall::_imageNW = NULL [static, private] |
SDL_Surface * Wall::_imageSE = NULL [static, private] |
SDL_Surface * Wall::_imageSW = NULL [static, private] |