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. | |
Definition at line 24 of file Player.cs.
| Objects3D.Player.Player | ( | ) |
Definition at line 43 of file Player.cs.
References Objects3D.Player.FCollided, Objects3D.Player.FFinished, Objects3D.Player.FGravity, Objects3D.Player.FID, Objects3D.Player.FJump, Objects3D.Player.FLastCube, Objects3D.Player.FPosition, Objects3D.Player.FRandom, Objects3D.Player.FRotation, and Objects3D.Player.FStartJump.
| byte [] Objects3D.Player.GetBytes | ( | ) |
Method returning binary representation of Player instance.
GetBytes
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
| [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 |
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
| [in] | Player | instance |
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
| [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.
float Objects3D.Player.Acceleration = 9.81F [static] |
byte Objects3D.Player.Scale = 15 [static] |
byte Objects3D.Player.FDetails = 24 [static, protected] |
bool Objects3D.Player.FCollided = false [protected] |
bool Objects3D.Player.FFinished = false [protected] |
float Objects3D.Player.FGravity = 0 [protected] |
byte Objects3D.Player.FID = 0 [protected] |
Definition at line 34 of file Player.cs.
Referenced by Objects3D.Player.GetBytes(), Objects3D.Player.Player(), and Objects3D.Player.SetBytes().
bool Objects3D.Player.FJump = false [protected] |
ServerCube Objects3D.Player.FLastCube = null [protected] |
int Objects3D.Player.FRandom = 0 [protected] |
bool Objects3D.Player.FStartJump = false [protected] |
Coordinate Objects3D.Player.FPosition [protected] |
Definition at line 40 of file Player.cs.
Referenced by Objects3D.Player.Assign(), Objects3D.Player.Draw(), Objects3D.Player.GetBytes(), Objects3D.Player.Player(), and Objects3D.Player.SetBytes().
Coordinate Objects3D.Player.FRotation [protected] |
Definition at line 41 of file Player.cs.
Referenced by Objects3D.Player.Assign(), Objects3D.Player.GetBytes(), Objects3D.Player.Player(), and Objects3D.Player.SetBytes().
Objects3D.Player::ByteSize [static, get] |
Property containing the length of the binary representation of Player.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Definition at line 261 of file Player.cs.
Referenced by Objects3D.Player.Assign(), and Cubes3D.ServerHandler.ServerTimerTick().
1.5.6