C#Code
C#Code
Public Member Functions | Static Public Attributes | Private Attributes
TheForum.GameCode.Items.BandwagonItem Class Reference
Inheritance diagram for TheForum.GameCode.Items.BandwagonItem:
TheForum.GameCode.Items.BasePieceItem TheForum.GameCode.Items.BasePieceItem

List of all members.

Public Member Functions

 BandwagonItem ()
override void Update (int timePassed, BasePiece piece, BaseGameBoard board, Libraries.AssetManager assetM)
override void Render (GraphicsDevice device)
void Setup (BasePiece piece, Libraries.AssetManager assetM, UInt64 timeWait)
override void RemoveFromPiece (BasePiece piece)
override bool IsItemType (Libraries.StringType type)
override Libraries.StringType GetItemType ()
 BandwagonItem ()
override void Update (int timePassed, BasePiece piece, BaseGameBoard board, Libraries.AssetManager assetM)
override void Render (GraphicsDevice device)
void Setup (BasePiece piece, Libraries.AssetManager assetM, UInt64 timeWait)
override void RemoveFromPiece (BasePiece piece)

Static Public Attributes

static readonly
Libraries.StringType 
s_eventType = new Libraries.StringType("item_bandwagon")

Private Attributes

Libraries.Timers.BaseTimer m_timer

Detailed Description

Game piece item that attaches to a game piece. Runs for a set amount of time and then goes off. When it goes off, all the pieces are changed to be red, green and blue. Removing it from the board stops it from going off.


Constructor & Destructor Documentation

TheForum.GameCode.Items.BandwagonItem.BandwagonItem ( )

Default constructor.

TheForum.GameCode.Items.BandwagonItem.BandwagonItem ( )

Default constructor.


Member Function Documentation

override Libraries.StringType TheForum.GameCode.Items.BandwagonItem.GetItemType ( ) [virtual]

Get the ID that represents the item type.

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

Implements TheForum.GameCode.Items.BasePieceItem.

override bool TheForum.GameCode.Items.BandwagonItem.IsItemType ( Libraries.StringType  type) [virtual]

Check if the item type matches the given item type.

type - Type to check against.

Return:
Value is true if the item type matched, false if not.

Implements TheForum.GameCode.Items.BasePieceItem.

override void TheForum.GameCode.Items.BandwagonItem.RemoveFromPiece ( BasePiece  piece) [virtual]

Remove the the item from the given piece. Set everything back to the way it was in the piece. Make sure it is actually the piece that contains the item ;)

piece - Piece to remove the item from.

Implements TheForum.GameCode.Items.BasePieceItem.

override void TheForum.GameCode.Items.BandwagonItem.RemoveFromPiece ( BasePiece  piece) [virtual]

Remove the the item from the given piece. Set everything back to the way it was in the piece. Make sure it is actually the piece that contains the item ;)

Implements TheForum.GameCode.Items.BasePieceItem.

override void TheForum.GameCode.Items.BandwagonItem.Render ( GraphicsDevice  device) [virtual]

Render the piece.

device - Device to render whatever with.

Implements TheForum.GameCode.Items.BasePieceItem.

override void TheForum.GameCode.Items.BandwagonItem.Render ( GraphicsDevice  device) [virtual]

Render the piece.

device - Device to render whatever with.

Implements TheForum.GameCode.Items.BasePieceItem.

void TheForum.GameCode.Items.BandwagonItem.Setup ( BasePiece  piece,
Libraries.AssetManager  assetM,
UInt64  timeWait 
)

Setup the item, attaching to the given piece and setting whatever is needed in it.

piece - Piece that will contain the item.
assetM - Asset manager to use for a any loading.
timeWait - How long to wait before the item triggers.
void TheForum.GameCode.Items.BandwagonItem.Setup ( BasePiece  piece,
Libraries.AssetManager  assetM,
UInt64  timeWait 
)

Setup the item, attaching to the given piece and setting whatever is needed in it.

piece - Piece that will contain the item.
assetM - Asset manager to use for a any loading.
timeWait - How long to wait before the item triggers.
override void TheForum.GameCode.Items.BandwagonItem.Update ( int  timePassed,
BasePiece  piece,
BaseGameBoard  board,
Libraries.AssetManager  assetM 
) [virtual]

Update the item and the piece as needed.

timePassed - How long has passed since the previous update.
piece - Piece that contains the item.
board - Board the piece is on.
assetM - Asset manager to use.

Implements TheForum.GameCode.Items.BasePieceItem.

override void TheForum.GameCode.Items.BandwagonItem.Update ( int  timePassed,
BasePiece  piece,
BaseGameBoard  board,
Libraries.AssetManager  assetM 
) [virtual]

Update the item and the piece as needed.

timePassed - How long has passed since the previous update.
piece - Piece that contains the item.
board - Board the piece is on.

Implements TheForum.GameCode.Items.BasePieceItem.


Member Data Documentation

Libraries Timers BaseTimer TheForum::GameCode::Items.BandwagonItem::m_timer [private]
static readonly Libraries StringType TheForum::GameCode::Items.BandwagonItem::s_eventType = new Libraries.StringType("item_bandwagon") [static]

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