CTile Class Reference

#include <structs.h>

Collaboration diagram for CTile:

Collaboration graph
[legend]
List of all members.

Detailed Description

This class represents a base tile graphic object which is drawn in the playfield area before any other objects are drawn. Tiles may be able to interact with the game world, but are mainly there to give the illusion of a terrain environment for the playfield.

Definition at line 45 of file structs.h.

Public Member Functions

 CTile (void)
 default constructor

Public Attributes

int iTexture
 the texture ID associated with this tile
int iType
 the type ID associated with this tile (e.g. grass, mud, etc.)
int iTileEffect
 the tile-effect ID associated with this tile (e.g. hurt player, etc.)
bool bPassable
 whether or not the player is allowed to travel on this tile
int iDamage
 the amount of damage this tile will do when traveled on (per timer event)
CTilePrevious
 a link to the previous CTile when this object is in a linked list
CTileNext
 a link to the next CTile when this object is in a linked list


Constructor & Destructor Documentation

CTile::CTile ( void   ) 

Create a CTile class object with default parameters.

Definition at line 657 of file structs.cpp.

References bPassable, iDamage, iTexture, iTileEffect, iType, Next, Previous, TEXID_NULL, TILE_EFFECT_NULL, and TILEID_NULL.


Member Data Documentation

int CTile::iTexture

Definition at line 48 of file structs.h.

Referenced by CTile(), and DrawTiles().

int CTile::iType

Definition at line 49 of file structs.h.

Referenced by CTile().

int CTile::iTileEffect

Definition at line 50 of file structs.h.

Referenced by CTile(), and ProcessTileCollisions().

bool CTile::bPassable

Definition at line 51 of file structs.h.

Referenced by CTile().

int CTile::iDamage

Definition at line 52 of file structs.h.

Referenced by CTile(), and ProcessTileCollisions().

CTile* CTile::Previous

Definition at line 54 of file structs.h.

Referenced by CTile().

CTile* CTile::Next

Definition at line 55 of file structs.h.

Referenced by CTile().

 

Copyright Windsor Schmidt 2006 - All rights reserved.