Wall Class Reference

#include <Wall.h>

Inherits MapObject.

Inheritance diagram for Wall:

Inheritance graph
[legend]
List of all members.

Detailed Description

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


Constructor & Destructor Documentation

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:

Wall::~Wall (  ) 

Definition at line 30 of file Wall.cpp.


Member Function Documentation

void Wall::destroy (  )  [virtual]

Implements MapObject.

Definition at line 44 of file Wall.cpp.

void Wall::draw ( Point  position,
Point  dimensions 
) const [virtual]

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]

Implements MapObject.

Definition at line 39 of file Wall.cpp.

References _destroyed, and _dir.

bool Wall::isPassable (  )  const [virtual]

Implements MapObject.

Definition at line 34 of file Wall.cpp.


Member Data Documentation

bool Wall::_destroyed [private]

Definition at line 25 of file Wall.h.

Referenced by isPassable().

Direction Wall::_dir

Definition at line 15 of file Wall.h.

Referenced by draw(), and isPassable().

SDL_Surface * Wall::_image = NULL [static, private]

Definition at line 26 of file Wall.h.

Referenced by draw(), and Wall().

SDL_Surface * Wall::_imageNE = NULL [static, private]

Definition at line 27 of file Wall.h.

Referenced by draw(), and Wall().

SDL_Surface * Wall::_imageNW = NULL [static, private]

Definition at line 28 of file Wall.h.

Referenced by draw(), and Wall().

SDL_Surface * Wall::_imageSE = NULL [static, private]

Definition at line 29 of file Wall.h.

Referenced by draw(), and Wall().

SDL_Surface * Wall::_imageSW = NULL [static, private]

Definition at line 30 of file Wall.h.

Referenced by draw(), and Wall().

spMapTile Wall::tile1

Definition at line 19 of file Wall.h.

spMapTile Wall::tile2

Definition at line 20 of file Wall.h.


The documentation for this class was generated from the following files:
Generated on Fri Sep 22 06:00:27 2006 for X-CLONE by  doxygen 1.4.7