C#Code
C#Code
Public Member Functions | Protected Attributes
TheForum.GameCode.BasePieceSwapper Class Reference
Inheritance diagram for TheForum.GameCode.BasePieceSwapper:
TheForum.GameCode.PieceSwapper TheForum.GameCode.PieceSwapper

List of all members.

Public Member Functions

 BasePieceSwapper ()
void SetMaxPiecesStored (int maxNumPieces)
virtual void Load (Libraries.AssetManager assetM, Libraries.StringType posterID)
virtual void Update (int timePassed, Libraries.AssetManager assetM)
virtual void Render (GraphicsDevice device)
virtual bool Swap (BaseGameBoard board, int col, int row, Libraries.CallbackDelegate soundFunc)
 BasePieceSwapper ()
void SetMaxPiecesStored (int maxNumPieces)
virtual void Load (Libraries.AssetManager assetM)
virtual void Update (int timePassed, Libraries.AssetManager assetM)
virtual void Render (GraphicsDevice device)
virtual bool Swap (BaseGameBoard board, int col, int row)

Protected Attributes

List< BasePiecem_pieces
 Store pieces that were removed from othe board.
int m_maxNumPieces
 Maxiumum number of pieces that can be stored.
Libraries.StringType m_posterID
 ID of the poster that the piece swapper is being used for.

Detailed Description

Stores and displays pieces the user removed from the board, and handles reinserting them. Derive for special handling.


Constructor & Destructor Documentation

TheForum.GameCode.BasePieceSwapper.BasePieceSwapper ( )
TheForum.GameCode.BasePieceSwapper.BasePieceSwapper ( )

Member Function Documentation

virtual void TheForum.GameCode.BasePieceSwapper.Load ( Libraries.AssetManager  assetM,
Libraries.StringType  posterID 
) [virtual]

Load whatever is needed for the piece holder.

assetM - Asset manager to use.
posterID - Poster the swapper is used by.

Reimplemented in TheForum.GameCode.PieceSwapper.

virtual void TheForum.GameCode.BasePieceSwapper.Load ( Libraries.AssetManager  assetM) [virtual]

Load whatever is needed for the piece holder.

assetM - Asset manager to use.

Reimplemented in TheForum.GameCode.PieceSwapper.

virtual void TheForum.GameCode.BasePieceSwapper.Render ( GraphicsDevice  device) [virtual]

Render everything.

device - Device to render with.

Reimplemented in TheForum.GameCode.PieceSwapper, and TheForum.GameCode.PieceSwapper.

virtual void TheForum.GameCode.BasePieceSwapper.Render ( GraphicsDevice  device) [virtual]

Render everything.

device - Device to render with.

Reimplemented in TheForum.GameCode.PieceSwapper, and TheForum.GameCode.PieceSwapper.

void TheForum.GameCode.BasePieceSwapper.SetMaxPiecesStored ( int  maxNumPieces)

Set the maximum number of pieces that can be stored.

maxNumPieces - Maximum number of pieces that can be stored.
void TheForum.GameCode.BasePieceSwapper.SetMaxPiecesStored ( int  maxNumPieces)

Set the maximum number of pieces that can be stored.

virtual bool TheForum.GameCode.BasePieceSwapper.Swap ( BaseGameBoard  board,
int  col,
int  row,
Libraries.CallbackDelegate  soundFunc 
) [virtual]

Swaps what is on the board at the given location with what is stored.

board - Board to swap with.
col, row - Column and row on the board to swap with.
soundFunc - Sound function to play the sound with.

Return:
Value is true if the swap occured, false if not.

Reimplemented in TheForum.GameCode.PieceSwapper.

virtual bool TheForum.GameCode.BasePieceSwapper.Swap ( BaseGameBoard  board,
int  col,
int  row 
) [virtual]

Swaps what is on the board at the given location with what is stored.

board - Board to swap with.
col, row - Column and row on the board to swap with.

Return:
Value is true if the swap occured, false if not.

Reimplemented in TheForum.GameCode.PieceSwapper.

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

Update everything.

timePassed - How long has passed since the previous update.
assetM - Asset manager to use.

Reimplemented in TheForum.GameCode.PieceSwapper, and TheForum.GameCode.PieceSwapper.

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

Update everything.

timePassed - How long has passed since the previous update.
assetM - Asset manager to use.

Reimplemented in TheForum.GameCode.PieceSwapper, and TheForum.GameCode.PieceSwapper.


Member Data Documentation

Maxiumum number of pieces that can be stored.

Store pieces that were removed from othe board.

ID of the poster that the piece swapper is being used for.


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