Objects3D.Player Class Reference

Container for all player data needed by the server. More...

List of all members.

Public Member Functions

 Player ()
byte[] GetBytes ()
 Method returning binary representation of Player instance.
bool SetBytes (byte[] ABytes, int AOffset)
 Method setting binary representation of Player instance.
bool Assign (Player APlayer)
 Assigns the fields of the current instance the values of the passed instance.
void Draw (GR AGR, IntPtr AQuadric)
 draws the player via OpenGL

Static Public Attributes

static float Acceleration = 9.81F
static byte Scale = 15

Protected Attributes

bool FCollided = false
bool FFinished = false
float FGravity = 0
byte FID = 0
bool FJump = false
ServerCube FLastCube = null
int FRandom = 0
bool FStartJump = false
Coordinate FPosition
Coordinate FRotation

Static Protected Attributes

static byte FDetails = 24

Properties

static int ByteSize [get]
 Property containing the length of the binary representation of Player.
bool Collided [get, set]
 Property containing whether a collision has happened before.
bool Finished [get, set]
 Property containing whehther the player has finished the map.
byte ID [get, set]
 Property containing the player ID.
float Gravity [get, set]
 Property containing the current gravity impact on the player.
bool Jump [get, set]
 Property containing the current jump state of the player.
ServerCube LastCube [get, set]
 Property containing the last touched cube of the player.
Coordinate Position [get, set]
 Property containing the current position of the player.
int Random [get, set]
 Property containing the random identifier of the client.
Coordinate Rotation [get, set]
 Property containing the current rotation of the player.
bool StartJump [get, set]
 Property containing if a jump action just started.


Detailed Description

Container for all player data needed by the server.

Author:
Kevin Niehage

Definition at line 24 of file Player.cs.


Constructor & Destructor Documentation

Objects3D.Player.Player (  ) 


Member Function Documentation

byte [] Objects3D.Player.GetBytes (  ) 

Method returning binary representation of Player instance.

GetBytes

Author:
Kevin Niehage
Returns:
binary representation of Player instance

Definition at line 282 of file Player.cs.

References Objects3D.Player.ByteSize, Objects3D.Player.FID, Objects3D.Player.FPosition, Objects3D.Player.FRotation, and Objects3D.Coordinate.GetBytes().

Referenced by Objects3D.Network.GetPlayers().

bool Objects3D.Player.SetBytes ( byte[]  ABytes,
int  AOffset 
)

Method setting binary representation of Player instance.

SetBytes

Author:
Kevin Niehage
Parameters:
[in] ABytes array of byte containing the binary representation
[in] AOffset value defining from which position of the array the binary representation is to be read
Returns:
indicator if method worked correctly

Definition at line 310 of file Player.cs.

References Objects3D.Player.ByteSize, Objects3D.Player.FID, Objects3D.Player.FPosition, Objects3D.Player.FRotation, and Objects3D.Coordinate.SetBytes().

bool Objects3D.Player.Assign ( Player  APlayer  ) 

Assigns the fields of the current instance the values of the passed instance.

Assign

Author:
Kevin Niehage
Parameters:
[in] Player instance
Returns:
indicator if method worked correctly

Definition at line 337 of file Player.cs.

References Objects3D.Coordinate.Assign(), Objects3D.Player.Collided, Objects3D.Player.Finished, Objects3D.Player.FPosition, Objects3D.Player.FRotation, Objects3D.Player.Gravity, Objects3D.Player.ID, Objects3D.Player.Jump, Objects3D.Player.LastCube, Objects3D.Player.Position, Objects3D.Player.Random, Objects3D.Player.Rotation, and Objects3D.Player.StartJump.

void Objects3D.Player.Draw ( GR  AGR,
IntPtr  AQuadric 
)

draws the player via OpenGL

Draw

Author:
Kevin Niehage
Parameters:
[in] GR instance
[in] pointer to OpenGL Quadric instance

Definition at line 369 of file Player.cs.

References Objects3D.Player.FDetails, Objects3D.Player.FPosition, Objects3D.Player.Scale, Objects3D.Coordinate.X, Objects3D.Coordinate.Y, and Objects3D.Coordinate.Z.


Member Data Documentation

float Objects3D.Player.Acceleration = 9.81F [static]

Definition at line 26 of file Player.cs.

byte Objects3D.Player.Scale = 15 [static]

Definition at line 27 of file Player.cs.

Referenced by Objects3D.Player.Draw().

byte Objects3D.Player.FDetails = 24 [static, protected]

Definition at line 29 of file Player.cs.

Referenced by Objects3D.Player.Draw().

bool Objects3D.Player.FCollided = false [protected]

Definition at line 31 of file Player.cs.

Referenced by Objects3D.Player.Player().

bool Objects3D.Player.FFinished = false [protected]

Definition at line 32 of file Player.cs.

Referenced by Objects3D.Player.Player().

float Objects3D.Player.FGravity = 0 [protected]

Definition at line 33 of file Player.cs.

Referenced by Objects3D.Player.Player().

byte Objects3D.Player.FID = 0 [protected]

bool Objects3D.Player.FJump = false [protected]

Definition at line 35 of file Player.cs.

Referenced by Objects3D.Player.Player().

Definition at line 36 of file Player.cs.

Referenced by Objects3D.Player.Player().

int Objects3D.Player.FRandom = 0 [protected]

Definition at line 37 of file Player.cs.

Referenced by Objects3D.Player.Player().

bool Objects3D.Player.FStartJump = false [protected]

Definition at line 38 of file Player.cs.

Referenced by Objects3D.Player.Player().


Property Documentation

Objects3D.Player::ByteSize [static, get]

Property containing the length of the binary representation of Player.

Author:
Kevin Niehage

Definition at line 66 of file Player.cs.

Referenced by Objects3D.Player.GetBytes(), and Objects3D.Player.SetBytes().

Objects3D.Player::Collided [get, set]

Property containing whether a collision has happened before.

Author:
Kevin Niehage

Definition at line 81 of file Player.cs.

Referenced by Objects3D.Player.Assign(), Cubes3D.ServerHandler.ServerTimerTick(), and Cubes3D.ServerHandler.StartServerReceiver().

Objects3D.Player::Finished [get, set]

Property containing whehther the player has finished the map.

Author:
Kevin Niehage

Definition at line 101 of file Player.cs.

Referenced by Objects3D.Player.Assign(), and Cubes3D.ServerHandler.ServerTimerTick().

Objects3D.Player::ID [get, set]

Property containing the player ID.

Author:
Kevin Niehage

Definition at line 121 of file Player.cs.

Referenced by Objects3D.Player.Assign(), and Cubes3D.ServerHandler.StartServerReceiver().

Objects3D.Player::Gravity [get, set]

Property containing the current gravity impact on the player.

Author:
Kevin Niehage

Definition at line 141 of file Player.cs.

Referenced by Objects3D.Player.Assign(), and Cubes3D.ServerHandler.ServerTimerTick().

Objects3D.Player::Jump [get, set]

Property containing the current jump state of the player.

Author:
Kevin Niehage

Definition at line 161 of file Player.cs.

Referenced by Objects3D.Player.Assign(), and Cubes3D.ServerHandler.ServerTimerTick().

Objects3D.Player::LastCube [get, set]

Property containing the last touched cube of the player.

Author:
Kevin Niehage

Definition at line 181 of file Player.cs.

Referenced by Objects3D.Player.Assign(), Cubes3D.ServerHandler.ServerTimerTick(), and Cubes3D.ServerHandler.StartServerReceiver().

Objects3D.Player::Position [get, set]

Property containing the current position of the player.

Author:
Kevin Niehage

Definition at line 201 of file Player.cs.

Referenced by Objects3D.Player.Assign(), Cubes3D.ClientHandler.Paint(), Cubes3D.ServerHandler.ServerTimerTick(), and Cubes3D.ServerHandler.StartServerReceiver().

Objects3D.Player::Random [get, set]

Property containing the random identifier of the client.

Author:
Kevin Niehage

Definition at line 221 of file Player.cs.

Referenced by Objects3D.Player.Assign(), and Cubes3D.ServerHandler.StartServerReceiver().

Objects3D.Player::Rotation [get, set]

Property containing the current rotation of the player.

Author:
Kevin Niehage

Definition at line 241 of file Player.cs.

Referenced by Objects3D.Player.Assign(), Cubes3D.ClientHandler.Paint(), and Cubes3D.ServerHandler.StartServerReceiver().

Objects3D.Player::StartJump [get, set]

Property containing if a jump action just started.

Author:
Kevin Niehage

Definition at line 261 of file Player.cs.

Referenced by Objects3D.Player.Assign(), and Cubes3D.ServerHandler.ServerTimerTick().


The documentation for this class was generated from the following file:

Generated on Fri Nov 14 09:05:12 2008 for Cubesł by  doxygen 1.5.6