Hosting courtesy of Sourceforge

SourceForge Logo
Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Game::AbstractTile Class Reference

#include <Tile.h>

Inheritance diagram for Game::AbstractTile:

Inheritance graph
[legend]
Collaboration diagram for Game::AbstractTile:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual bool isPassable () const=0
virtual void hitWithExplosion ()
virtual MovementEffect AbstractTile::effect (MoveableItem &item)
virtual AbstractTile * dynCopy () const=0

Detailed Description

Base class for all tiles

Definition at line 56 of file Tile.h.


Constructor & Destructor Documentation

AbstractTile::AbstractTile  
 

Definition at line 60 of file Tile.cpp.

AbstractTile::~AbstractTile   [virtual]
 

Definition at line 64 of file Tile.cpp.


Member Function Documentation

virtual MovementEffect Game::AbstractTile::AbstractTile::effect MoveableItem   item [virtual]
 

Allows tile to effect a MoveableItem. It can change the state (ie allow changing the state of the MoveableItem. It's up to the reciever of the call to actually make the change. The default effect, even when performed, does not change anything.

Returns:
Direction in which the effect moved the item, if the item moved a small distance, else NO_DIRECTION (either no movement at all or some sort of warp)

void AbstractTile::deOccupy  
 

Definition at line 66 of file Tile.cpp.

virtual AbstractTile* Game::AbstractTile::dynCopy   const [pure virtual]
 

Allocates a copy of the object via new. The caller is responsible for deletion

Reimplemented in Game::IndestructibleTile, Game::PassableTile, Game::ExplodableTile, Game::ConveyorTile, and Game::SlipperyTile.

virtual void Game::AbstractTile::hitWithExplosion   [virtual]
 

Alerts the tile that it has been hit by a bomb

Reimplemented in Game::ExplodableTile.

Definition at line 65 of file Tile.h.

bool AbstractTile::isOccupied   const
 

Definition at line 74 of file Tile.cpp.

virtual bool Game::AbstractTile::isPassable   const [pure virtual]
 

Returning true implies that both flames from bombs can continue to go through the tile and that players can walk through the tile

Reimplemented in Game::IndestructibleTile, Game::PassableTile, Game::ExplodableTile, Game::ConveyorTile, and Game::SlipperyTile.

void AbstractTile::occupy  
 

Definition at line 70 of file Tile.cpp.


The documentation for this class was generated from the following files:
Generated on Tue May 21 07:26:52 2002 for BomberLAN by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001