Public Member Functions | |
| Controller () | |
| bool | GetKeyState (ControllerKey AControllerKey) |
| Method returning the key state of a key. | |
| void | SetKeyState (ControllerKey AControllerKey, bool AValue) |
| Method setting the key state of a key. | |
| byte[] | GetBytes () |
| Method returning binary representation of Controller instance. | |
| bool | SetBytes (byte[] ABytes, int AOffset) |
| Method setting binary representation of Controller instance. | |
| bool | Assign (Controller AController) |
| Assigns the fields of the current instance the values of the passed instance. | |
Protected Attributes | |
| byte | FID = 0 |
| Coordinate | FRotation |
| byte[] | FStates |
Properties | |
| static int | ByteSize [get] |
| Property containing the length of the binary representation of Controller. | |
| byte | ID [get, set] |
| Property containing the player ID. | |
| Coordinate | Rotation [get, set] |
| Property containing the current rotation of the player. | |
Definition at line 40 of file Controller.cs.
| Objects3D.Controller.Controller | ( | ) |
Definition at line 47 of file Controller.cs.
References Objects3D.Controller.FID, Objects3D.Controller.FRotation, and Objects3D.Controller.FStates.
| bool Objects3D.Controller.GetKeyState | ( | ControllerKey | AControllerKey | ) |
Method returning the key state of a key.
GetKeyState
| [in] | key | representer |
Definition at line 83 of file Controller.cs.
References Objects3D.Controller.FStates.
Referenced by Objects3D.Controller.Assign().
| void Objects3D.Controller.SetKeyState | ( | ControllerKey | AControllerKey, | |
| bool | AValue | |||
| ) |
Method setting the key state of a key.
SetKeyState
| [in] | key | representer |
| [in] | key | state |
Definition at line 98 of file Controller.cs.
References Objects3D.Controller.FStates.
Referenced by Objects3D.Controller.Assign().
| byte [] Objects3D.Controller.GetBytes | ( | ) |
Method returning binary representation of Controller instance.
GetBytes
Definition at line 162 of file Controller.cs.
References Objects3D.Controller.ByteSize, Objects3D.Controller.FID, Objects3D.Controller.FRotation, Objects3D.Controller.FStates, and Objects3D.Coordinate.GetBytes().
Referenced by Objects3D.Network.GetController().
| bool Objects3D.Controller.SetBytes | ( | byte[] | ABytes, | |
| int | AOffset | |||
| ) |
Method setting binary representation of Controller 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 189 of file Controller.cs.
References Objects3D.Controller.ByteSize, Objects3D.Controller.FID, Objects3D.Controller.FRotation, Objects3D.Controller.FStates, and Objects3D.Coordinate.SetBytes().
| bool Objects3D.Controller.Assign | ( | Controller | AController | ) |
Assigns the fields of the current instance the values of the passed instance.
Assign
| [in] | controller | instance |
Definition at line 222 of file Controller.cs.
References Objects3D.Coordinate.Assign(), Objects3D.Controller.FRotation, Objects3D.Controller.GetKeyState(), Objects3D.Controller.ID, Objects3D.Controller.Rotation, and Objects3D.Controller.SetKeyState().
byte Objects3D.Controller.FID = 0 [protected] |
Definition at line 42 of file Controller.cs.
Referenced by Objects3D.Controller.Controller(), Objects3D.Controller.GetBytes(), and Objects3D.Controller.SetBytes().
Coordinate Objects3D.Controller.FRotation [protected] |
Definition at line 44 of file Controller.cs.
Referenced by Objects3D.Controller.Assign(), Objects3D.Controller.Controller(), Objects3D.Controller.GetBytes(), and Objects3D.Controller.SetBytes().
byte [] Objects3D.Controller.FStates [protected] |
Definition at line 45 of file Controller.cs.
Referenced by Objects3D.Controller.Controller(), Objects3D.Controller.GetBytes(), Objects3D.Controller.GetKeyState(), Objects3D.Controller.SetBytes(), and Objects3D.Controller.SetKeyState().
Objects3D.Controller::ByteSize [static, get] |
Property containing the length of the binary representation of Controller.
Definition at line 65 of file Controller.cs.
Referenced by Objects3D.Controller.GetBytes(), and Objects3D.Controller.SetBytes().
Objects3D.Controller::ID [get, set] |
Property containing the player ID.
Definition at line 121 of file Controller.cs.
Referenced by Objects3D.Controller.Assign(), Cubes3D.ClientHandler.ClientHandler(), and Cubes3D.ServerHandler.StartServerReceiver().
Objects3D.Controller::Rotation [get, set] |
Property containing the current rotation of the player.
Definition at line 141 of file Controller.cs.
Referenced by Objects3D.Controller.Assign().
1.5.6