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

List of all members.

Public Member Functions

 PieceSwapper ()
override void Load (Libraries.AssetManager assetM, Libraries.StringType posterID)
override void Update (int timePassed, Libraries.AssetManager assetM)
override void Render (GraphicsDevice device)
override bool Swap (BaseGameBoard board, int col, int row, Libraries.CallbackDelegate soundFunc)
void SetPieceDisplayPos (Vector3 pos)
Vector3 GetDisplayPos ()
 PieceSwapper ()
override void Load (Libraries.AssetManager assetM)
override void Update (int timePassed, Libraries.AssetManager assetM)
override void Render (GraphicsDevice device)
override bool Swap (BaseGameBoard board, int col, int row)
void SetPieceDisplayPos (Vector3 pos)

Protected Attributes

Vector3 m_pieceDisplayPos
 Where to display the stored piece.
Vector3 m_initialRot
 Initial rotation to apply to the piece.
double m_timePassed
 How long the update has been running. Used for rotation.

Private Attributes

HeartBeat m_throb
 Controls the heart throbbing.
Libraries._3D.BaseObj3D m_displayArea
 Used to show the area where held pieces go.

Detailed Description

Piece swapper. Displays the piece and maybe other stuff. Who knows.


Constructor & Destructor Documentation

TheForum.GameCode.PieceSwapper.PieceSwapper ( )

Default constructor.

TheForum.GameCode.PieceSwapper.PieceSwapper ( )

Member Function Documentation

Vector3 TheForum.GameCode.PieceSwapper.GetDisplayPos ( )

Gets the position the swap display piece is displayed at.

Return:
Value is where the held piece gets displayed at.

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

Load the swapper. Create and setup the model.

assetM - Asset manager to use.
posterID - ID of the poster the swapper is for.

Reimplemented from TheForum.GameCode.BasePieceSwapper.

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

Load whatever is needed for the piece holder. /par assetM - Asset manager to use.

Reimplemented from TheForum.GameCode.BasePieceSwapper.

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

Render everything.

device - Device to render with.

Reimplemented from TheForum.GameCode.BasePieceSwapper.

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

Render everything.

device - Device to render with.

Reimplemented from TheForum.GameCode.BasePieceSwapper.

void TheForum.GameCode.PieceSwapper.SetPieceDisplayPos ( Vector3  pos)

Set the position where a stored piece is displayed at.

pos - Position to display at.
void TheForum.GameCode.PieceSwapper.SetPieceDisplayPos ( Vector3  pos)

Set the position where a stored piece is displayed at.

pos - Position to display at.
override bool TheForum.GameCode.PieceSwapper.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 call to run the sound.

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

Reimplemented from TheForum.GameCode.BasePieceSwapper.

override bool TheForum.GameCode.PieceSwapper.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 a swap occured, false if not.

Reimplemented from TheForum.GameCode.BasePieceSwapper.

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

Update everything.

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

Reimplemented from TheForum.GameCode.BasePieceSwapper.

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

Update everything.

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

Reimplemented from TheForum.GameCode.BasePieceSwapper.


Member Data Documentation

Used to show the area where held pieces go.

Initial rotation to apply to the piece.

Where to display the stored piece.

Controls the heart throbbing.

How long the update has been running. Used for rotation.


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