C#Code
C#Code
Public Member Functions | Private Member Functions | Private Attributes
TheForum.GameCode.BasicGameBoard Class Reference
Inheritance diagram for TheForum.GameCode.BasicGameBoard:
TheForum.GameCode.BaseGameBoard TheForum.GameCode.BaseGameBoard

List of all members.

Public Member Functions

 BasicGameBoard ()
override void Setup (Libraries.AssetManager assetM, Libraries.StringType posterID)
override void Update (int timePassed, Libraries.AssetManager assetM)
override void Render (GraphicsDevice device)
override void HandleGameMessageDelegate (object message)
void HandleItemMessageDelegate (object message)
void HandleFrogSirenMessage (MessageSystems.ItemMessage message, Libraries.AssetManager assetM)
void HandleUnknownMessage (MessageSystems.ItemMessage message, Libraries.AssetManager assetM)
override void Load (Libraries.AssetManager assetM)
override bool CheckForFlag (Libraries.StringType flag)
int PostMessage (string posterID)
bool PerformPieceSwap (Libraries.CallbackDelegate soundFunc)
bool MoveSelectionHighlighter (int col, int row)
void StorePieceForPost (BasePiece piece)
void SetMinPostSize (int minSize)
 BasicGameBoard ()
override void Setup (Libraries.AssetManager assetM)
override void Update (int timePassed, Libraries.AssetManager assetM)
override void Render (GraphicsDevice device)
override void HandleGameMessageDelegate (object message)
void HandleItemMessageDelegate (object message)
void HandleFrogSirenMessage (MessageSystems.ItemMessage message, Libraries.AssetManager assetM)
override void Load (Libraries.AssetManager assetM)
override bool CheckForFlag (Libraries.StringType flag)
int PostMessage (string posterID)
bool PerformPieceSwap ()
bool MoveSelectionHighlighter (int col, int row)
void StorePieceForPost (BasePiece piece)

Private Member Functions

 ~BasicGameBoard ()
 ~BasicGameBoard ()

Private Attributes

Libraries.AssetManager m_assetM
 Asset manager to use.
List< BasePiecem_storePiecesForPost
 Stores pieces removed from the board that will be posted in a message by the player.
int m_minPostSize
 Minimum number of pieces that must be posted to avoid underreporting to the IRS.

Detailed Description

A basic game board. Can be used for a actual game.


Constructor & Destructor Documentation

TheForum.GameCode.BasicGameBoard.BasicGameBoard ( )

Default constructor.

TheForum.GameCode.BasicGameBoard.~BasicGameBoard ( ) [private]

Destructor. Frees all drawing arrays.

TheForum.GameCode.BasicGameBoard.BasicGameBoard ( )

Default constructor.

TheForum.GameCode.BasicGameBoard.~BasicGameBoard ( ) [private]

Destructor. Frees all drawing arrays.


Member Function Documentation

override bool TheForum.GameCode.BasicGameBoard.CheckForFlag ( Libraries.StringType  flag) [virtual]

Check for the given flag.

flag - Flag to check for.

Reimplemented from TheForum.GameCode.BaseGameBoard.

override bool TheForum.GameCode.BasicGameBoard.CheckForFlag ( Libraries.StringType  flag) [virtual]

Check for the given flag.

flag - Flag to check for.

Reimplemented from TheForum.GameCode.BaseGameBoard.

void TheForum.GameCode.BasicGameBoard.HandleFrogSirenMessage ( MessageSystems.ItemMessage  message,
Libraries.AssetManager  assetM 
)

Do whatever is needed for the given frog siren item message.

message - Message to handle.
assetM - Asset manager to use.
void TheForum.GameCode.BasicGameBoard.HandleFrogSirenMessage ( MessageSystems.ItemMessage  message,
Libraries.AssetManager  assetM 
)

Do whatever is needed for the given frog siren item message.

message - Message to handle.
assetM - Asset manager to use.
override void TheForum.GameCode.BasicGameBoard.HandleGameMessageDelegate ( object  message) [virtual]

Used for a delegate to handle a input messages.

message - Message to handle. Should be of type KeyboardInputMessage.

Reimplemented from TheForum.GameCode.BaseGameBoard.

override void TheForum.GameCode.BasicGameBoard.HandleGameMessageDelegate ( object  message) [virtual]

Used for a delegate to handle a input messages.

message - Message to handle. Should be of type KeyboardInputMessage.

Reimplemented from TheForum.GameCode.BaseGameBoard.

void TheForum.GameCode.BasicGameBoard.HandleItemMessageDelegate ( object  message)

Used for a delegate to handle a item messages.

message - Message to handle. Should be of type KeyboardInputMessage.
void TheForum.GameCode.BasicGameBoard.HandleItemMessageDelegate ( object  message)

Used for a delegate to handle a item messages.

message - Message to handle. Should be of type KeyboardInputMessage.
void TheForum.GameCode.BasicGameBoard.HandleUnknownMessage ( MessageSystems.ItemMessage  message,
Libraries.AssetManager  assetM 
)

Do whatever is needed for the given unknown item message.

message - Message to handle.
assetM - Asset manager to use.
override void TheForum.GameCode.BasicGameBoard.Load ( Libraries.AssetManager  assetM) [virtual]

Load anything that needs to be loaded for the board. Assumes properties have already been set for what is needed with the board.

assetM - Asset manager to use.

Create the piece highlighter.

Reimplemented from TheForum.GameCode.BaseGameBoard.

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

Load anything that needs to be loaded for the board. Assumes properties have already been set for what is needed with the board.

assetM - Asset manager to use.

Create the piece highlighter.

Reimplemented from TheForum.GameCode.BaseGameBoard.

bool TheForum.GameCode.BasicGameBoard.MoveSelectionHighlighter ( int  col,
int  row 
)

Set the location the piece selection should be at.

col, row - Column and row location to move the highlighter to.
bool TheForum.GameCode.BasicGameBoard.MoveSelectionHighlighter ( int  col,
int  row 
)

Set the location the piece selection should be at.

col, row - Column and row location to move the highlighter to.
bool TheForum.GameCode.BasicGameBoard.PerformPieceSwap ( Libraries.CallbackDelegate  soundFunc)

Swap the held piece with the piece at the current selected location on the board.

soundFunc - Sound delegate to run the swap sounds with.

Return:
Value is true if the swap occured, false if not.
bool TheForum.GameCode.BasicGameBoard.PerformPieceSwap ( )

Swap the held piece with the piece at the current selected location on the board.

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

int TheForum.GameCode.BasicGameBoard.PostMessage ( string  posterID)

Post the current message pieces that can be posed.

Return:
Value is how many pieces were posted.

Post the current message pieces that can be posed.

posterID - ID of the poster who is posting the message.

Return:
Value is how many pieces were posted.
int TheForum.GameCode.BasicGameBoard.PostMessage ( string  posterID)

Post the current message pieces that can be posed.

posterID - ID of the poster who is posting the message.

Return:
Value is how many pieces were posted.
override void TheForum.GameCode.BasicGameBoard.Render ( GraphicsDevice  device) [virtual]

Render the piece.

device - Device to render the piece with.

Implements TheForum.GameCode.BaseGameBoard.

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

Render the piece.

device - Device to render the piece with.

Implements TheForum.GameCode.BaseGameBoard.

void TheForum.GameCode.BasicGameBoard.SetMinPostSize ( int  minSize)

Set the minimum number of pieces that need to be posted to avoid undereporting to the IRS.

minSize - Minimum size of the post.
override void TheForum.GameCode.BasicGameBoard.Setup ( Libraries.AssetManager  assetM) [virtual]

Create everything the board needs.

Reimplemented from TheForum.GameCode.BaseGameBoard.

override void TheForum.GameCode.BasicGameBoard.Setup ( Libraries.AssetManager  assetM,
Libraries.StringType  posterID 
) [virtual]

Setup the board.

assetM - Asset manager to use.
posterID - ID of the user the board is for.

Reimplemented from TheForum.GameCode.BaseGameBoard.

void TheForum.GameCode.BasicGameBoard.StorePieceForPost ( BasePiece  piece)

Stores the given piece for posting.

piece - Piece to store. Nothing else should have a referene to the piece.
void TheForum.GameCode.BasicGameBoard.StorePieceForPost ( BasePiece  piece)

Stores the given piece for posting.

piece - Piece to store. Nothing else should have a referene to the piece.
override void TheForum.GameCode.BasicGameBoard.Update ( int  timePassed,
Libraries.AssetManager  assetM 
) [virtual]

Update the piece.

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

Implements TheForum.GameCode.BaseGameBoard.

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

Update the piece.

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

Implements TheForum.GameCode.BaseGameBoard.


Member Data Documentation

Libraries AssetManager TheForum::GameCode.BasicGameBoard::m_assetM [private]

Asset manager to use.

Minimum number of pieces that must be posted to avoid underreporting to the IRS.

Stores pieces removed from the board that will be posted in a message by the player.


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