C#Code
C#Code
Public Member Functions | Private Types | Private Member Functions | Private Attributes
TheForum.GameCode.PostBackground Class Reference

List of all members.

Public Member Functions

 PostBackground ()
void Initialize ()
void SetPos (Vector3 pos, bool updatePositions)
void SetScale (Vector3 scale)
void Create (BaseGameBoard board, AssetManager assetM)
void Create (Vector2 avatarAreaDims, Vector2 messageAreaDims, AssetManager assetM)
void Update (int timePassed)
void Render (GraphicsDevice device)
Vector3 GetMessagePos ()
Vector3 GetPlayerAreaPos ()
 PostBackground ()
void Initialize ()
void SetPos (Vector3 pos, bool updatePositions)
void Create (BaseGameBoard board, AssetManager assetM)
void Create (Vector2 avatarAreaDims, Vector2 messageAreaDims, AssetManager assetM)
void Update (int framesPassed)
void Render (GraphicsDevice device)
Vector3 GetMessagePos ()
Vector3 GetPlayerAreaPos ()

Private Types

enum  PostRects {
  RECT_1 = 0, RECT_2, NUM_RECTS, RECT_1 = 0,
  RECT_2, NUM_RECTS
}
enum  PostRects {
  RECT_1 = 0, RECT_2, NUM_RECTS, RECT_1 = 0,
  RECT_2, NUM_RECTS
}

Private Member Functions

 ~PostBackground ()
void UpdatePositions ()
 ~PostBackground ()
void UpdatePositions ()

Private Attributes

FilledRect3D[] m_rects = new FilledRect3D[(int)PostRects.NUM_RECTS]
 Store the rects that make up the post.
Vector3 m_pos
 Top left position that everything is offset from.
Vector3[] m_offsets = new Vector3[(int)PostRects.NUM_RECTS]
 Offset from the start position that each rect is at.

Detailed Description

Used to display the background components for the opponent post section of the game. It displays the background section of the post, not the pieces.


Member Enumeration Documentation

Represents the different rects that make up the background.

Enumerator:
RECT_1 
RECT_2 
NUM_RECTS 
RECT_1 
RECT_2 
NUM_RECTS 

Represents the different rects that make up the background.

Enumerator:
RECT_1 
RECT_2 
NUM_RECTS 
RECT_1 
RECT_2 
NUM_RECTS 

Constructor & Destructor Documentation

TheForum.GameCode.PostBackground.PostBackground ( )

Constructor.

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

Destructor.

TheForum.GameCode.PostBackground.PostBackground ( )

Constructor.

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

Destructor.


Member Function Documentation

void TheForum.GameCode.PostBackground.Create ( BaseGameBoard  board,
AssetManager  assetM 
)

Create the graphical components. Use the given board to determine the size needed for the piece display area.

board - Board to use to dermine the reply size needed.
assetM - Asset manager to use for loading textures.
void TheForum.GameCode.PostBackground.Create ( Vector2  avatarAreaDims,
Vector2  messageAreaDims,
AssetManager  assetM 
)

Create the graphical components. Use the given board to determine the size needed for the piece display area.

avatarAreaDims - How large the avatar area is.
messageAreaDims - How large the message area is.
assetM - Asset manager to use for loading textures.
void TheForum.GameCode.PostBackground.Create ( BaseGameBoard  board,
AssetManager  assetM 
)

Create the graphical components. Use the given board to determine the size needed for the piece display area.

board - Board to use to dermine the reply size needed.
assetM - Asset manager to use for loading textures.
void TheForum.GameCode.PostBackground.Create ( Vector2  avatarAreaDims,
Vector2  messageAreaDims,
AssetManager  assetM 
)

Create the graphical components. Use the given board to determine the size needed for the piece display area.

board - Board to use to dermine the reply size needed.
assetM - Asset manager to use for loading textures.
Vector3 TheForum.GameCode.PostBackground.GetMessagePos ( )

Get the starting position of the message text area of the background post.

Return:
Value is the message area position.

Vector3 TheForum.GameCode.PostBackground.GetMessagePos ( )

Get the starting position of the message text area of the background post.

Vector3 TheForum.GameCode.PostBackground.GetPlayerAreaPos ( )

Get the starting position of the player area of the background post.

Vector3 TheForum.GameCode.PostBackground.GetPlayerAreaPos ( )

Get the starting position of the player area of the background post.

Value is the palyer area position.

void TheForum.GameCode.PostBackground.Initialize ( )

Setup the initial values, like positions.

void TheForum.GameCode.PostBackground.Initialize ( )

Setup the initial values, like positions.

void TheForum.GameCode.PostBackground.Render ( GraphicsDevice  device)

Render everything in the background.

device - Device to render with.
void TheForum.GameCode.PostBackground.Render ( GraphicsDevice  device)

Render everything in the background.

device - Device to render with.
void TheForum.GameCode.PostBackground.SetPos ( Vector3  pos,
bool  updatePositions 
)

Set the position that all other positions are based off.

pos - Position the components are based off.
updatePositions - True if the components should get their positions updated with the new position, false if not.
void TheForum.GameCode.PostBackground.SetPos ( Vector3  pos,
bool  updatePositions 
)

Setup the position that all other positions are based off.

pos - Position the components are based off.
updatePositions - True if the components should get their positions updated with the new position, false if not.
void TheForum.GameCode.PostBackground.SetScale ( Vector3  scale)

Set the scale being used by the background.

scale - Scale to use.
void TheForum.GameCode.PostBackground.Update ( int  framesPassed)

Update the piece.

framesPassed - How long has passed since the previous update.
void TheForum.GameCode.PostBackground.Update ( int  timePassed)

Update the piece.

timePassed - How long has passed since the previous update.
void TheForum.GameCode.PostBackground.UpdatePositions ( ) [private]

Runs through all the components and updates their positions to be based off the current position.

void TheForum.GameCode.PostBackground.UpdatePositions ( ) [private]

Runs through all the components and updates their positions to be based off the current position.


Member Data Documentation

Vector3 [] TheForum.GameCode.PostBackground.m_offsets = new Vector3[(int)PostRects.NUM_RECTS] [private]

Offset from the start position that each rect is at.

Top left position that everything is offset from.

FilledRect3D [] TheForum.GameCode.PostBackground.m_rects = new FilledRect3D[(int)PostRects.NUM_RECTS] [private]

Store the rects that make up the post.


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