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

List of all members.

Public Member Functions

 UserReplyToPostBackground ()
void Initialize ()
void SetPos (Vector3 pos, bool updatePositions)
void Create (BaseGameBoard board, AssetManager assetM)
void Update (int timePassed)
void Render (GraphicsDevice device)
Vector3 GetUserAreaPos ()
 UserReplyToPostBackground ()
void Initialize ()
void SetPos (Vector3 pos, bool updatePositions)
void Create (BaseGameBoard board, AssetManager assetM)
void Update (int timePassed)
void Render (GraphicsDevice device)
Vector3 GetUserAreaPos ()

Private Types

enum  PostRects {
  RECT_1 = 0, RECT_2, RECT_3, RECT_4,
  RECT_5, RECT_6, NUM_RECTS, RECT_1 = 0,
  RECT_2, RECT_3, RECT_4, RECT_5,
  RECT_6, NUM_RECTS
}
enum  PostRects {
  RECT_1 = 0, RECT_2, RECT_3, RECT_4,
  RECT_5, RECT_6, NUM_RECTS, RECT_1 = 0,
  RECT_2, RECT_3, RECT_4, RECT_5,
  RECT_6, NUM_RECTS
}

Private Member Functions

 ~UserReplyToPostBackground ()
void UpdatePositions ()
 ~UserReplyToPostBackground ()
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 reply to message section of the game. It creates all the graphics needed for the non-game parts of the screen. THIS SHOULD REALLY HAVE STUFF LOADED WITH A SCRIPT. I DON'T HAVE THAT YET, SO FOR NOW JUST DO IT THIS WAY. :)


Member Enumeration Documentation

Represents the different rects that make up the background.

Enumerator:
RECT_1 
RECT_2 
RECT_3 
RECT_4 
RECT_5 
RECT_6 
NUM_RECTS 
RECT_1 
RECT_2 
RECT_3 
RECT_4 
RECT_5 
RECT_6 
NUM_RECTS 

Represents the different rects that make up the background.

Enumerator:
RECT_1 
RECT_2 
RECT_3 
RECT_4 
RECT_5 
RECT_6 
NUM_RECTS 
RECT_1 
RECT_2 
RECT_3 
RECT_4 
RECT_5 
RECT_6 
NUM_RECTS 

Constructor & Destructor Documentation

TheForum.GameCode.UserReplyToPostBackground.UserReplyToPostBackground ( )

Constructor.

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

Destructor.

TheForum.GameCode.UserReplyToPostBackground.UserReplyToPostBackground ( )

Constructor.

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

Destructor.


Member Function Documentation

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

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

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

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

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

Get where the user area of the background starts. That would be, the part with the user name, avatar, etc.

Vector3 TheForum.GameCode.UserReplyToPostBackground.GetUserAreaPos ( )

Get where the user area of the background starts. That would be, the part with the user name, avatar, etc.

void TheForum.GameCode.UserReplyToPostBackground.Initialize ( )

Returns the position at which the puzzle board's top left corner should be at. Call after Initialize.

Setup the initial values, like positions.

void TheForum.GameCode.UserReplyToPostBackground.Initialize ( )

Setup the initial values, like positions.

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

Render everything in the background.

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

Render everything in the background.

device - Device to render with.
void TheForum.GameCode.UserReplyToPostBackground.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.UserReplyToPostBackground.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.UserReplyToPostBackground.Update ( int  timePassed)

Update the piece.

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

Update the piece.

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

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

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

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


Member Data Documentation

Vector3 [] TheForum.GameCode.UserReplyToPostBackground.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.

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