C#Code
C#Code
Classes | Public Member Functions | Protected Attributes | Static Private Attributes
TheForum.GameCode.SpecialEvents.SpecialEventBandwagon Class Reference
Inheritance diagram for TheForum.GameCode.SpecialEvents.SpecialEventBandwagon:
TheForum.GameCode.SpecialEvents.BaseSpecialEvent TheForum.GameCode.SpecialEvents.BaseSpecialEvent

List of all members.

Classes

class  Bandwagon

Public Member Functions

 SpecialEventBandwagon ()
bool Setup (int col, int row, BaseGameBoard board, Libraries.AssetManager assetM)
override void Update (int timePassed, Libraries.AssetManager assetM)
override void Render (Microsoft.Xna.Framework.Graphics.GraphicsDevice device)
override Libraries.StringType GetEventType ()
 SpecialEventBandwagon ()
bool Setup (int col, int row, BaseGameBoard board, Libraries.AssetManager assetM)
override void Update (int timePassed, Libraries.AssetManager assetM)
override void Render (Microsoft.Xna.Framework.Graphics.GraphicsDevice device)
override bool IsFinished ()
override Libraries.StringType GetEventType ()

Protected Attributes

BaseGameBoard m_board
 The board that will be effect by the event.
Bandwagon m_bandwagon
 The bandwagon itself.

Static Private Attributes

static Libraries.StringType s_specialEventType = new Libraries.StringType("special_event_bandwagon")

Detailed Description

Bandwagon event. A truck appears and drives through rows of pieces.


Constructor & Destructor Documentation

TheForum.GameCode.SpecialEvents.SpecialEventBandwagon.SpecialEventBandwagon ( )

Default constructor.

TheForum.GameCode.SpecialEvents.SpecialEventBandwagon.SpecialEventBandwagon ( )

Default constructor.


Member Function Documentation

override Libraries.StringType TheForum.GameCode.SpecialEvents.SpecialEventBandwagon.GetEventType ( ) [virtual]

Gets wether the event is finished.

Return:
Value is true if the event is finished, false if not.

Gets the type of the event.

Return:
Value is the ID that represents the event type.

Implements TheForum.GameCode.SpecialEvents.BaseSpecialEvent.

override Libraries.StringType TheForum.GameCode.SpecialEvents.SpecialEventBandwagon.GetEventType ( ) [virtual]

Gets the type of the event.

Implements TheForum.GameCode.SpecialEvents.BaseSpecialEvent.

override bool TheForum.GameCode.SpecialEvents.SpecialEventBandwagon.IsFinished ( )

Gets wether the event is finished.

Return:
Value is true if the event is finished, false if not.

Reimplemented from TheForum.GameCode.SpecialEvents.BaseSpecialEvent.

override void TheForum.GameCode.SpecialEvents.SpecialEventBandwagon.Render ( Microsoft.Xna.Framework.Graphics.GraphicsDevice  device) [virtual]

Renders the event.

device - Device to render with.

Implements TheForum.GameCode.SpecialEvents.BaseSpecialEvent.

override void TheForum.GameCode.SpecialEvents.SpecialEventBandwagon.Render ( Microsoft.Xna.Framework.Graphics.GraphicsDevice  device) [virtual]

Renders the event.

device - Device to render with.

Implements TheForum.GameCode.SpecialEvents.BaseSpecialEvent.

bool TheForum.GameCode.SpecialEvents.SpecialEventBandwagon.Setup ( int  col,
int  row,
BaseGameBoard  board,
Libraries.AssetManager  assetM 
)

Setup and start the event.

col, row - Where on the board the piece was located. If this is the last row, then it will be shifted up one row so that two rows can be taken out.
board - The game board.
assetM - Asset manager to use.

Return:
Value is true if setup was successful, false if not.
bool TheForum.GameCode.SpecialEvents.SpecialEventBandwagon.Setup ( int  col,
int  row,
BaseGameBoard  board,
Libraries.AssetManager  assetM 
)

Setup and start the event.

col, row - Where on the board the piece was located. If this is the last row, then it will be shifted up one row so that two rows can be taken out.
board - The game board.
assetM - Asset manager to use.

Return:
Value is true if setup was successful, false if not.
override void TheForum.GameCode.SpecialEvents.SpecialEventBandwagon.Update ( int  timePassed,
Libraries.AssetManager  assetM 
) [virtual]

Update the event.

timePassed - How much time to use for the update.
assetM - Asset manager to use.

Implements TheForum.GameCode.SpecialEvents.BaseSpecialEvent.

override void TheForum.GameCode.SpecialEvents.SpecialEventBandwagon.Update ( int  timePassed,
Libraries.AssetManager  assetM 
) [virtual]

Update the event.

timePassed - How much time to use for the update.
assetM - Asset manager to use.

Implements TheForum.GameCode.SpecialEvents.BaseSpecialEvent.


Member Data Documentation

The bandwagon itself.

The board that will be effect by the event.

static Libraries StringType TheForum::GameCode::SpecialEvents.SpecialEventBandwagon::s_specialEventType = new Libraries.StringType("special_event_bandwagon") [static, private]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Enumerations Properties