| PlayerInfo Constructor |
Create a new PlayerInfo DTO
Namespace:
INF1771_GameClient.dto
Assembly:
INF1771_GameClient (in INF1771_GameClient.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public PlayerInfo(
long node,
string name,
int x,
int y,
PlayerInfoDirection dir,
PlayerInfoState state,
Color color
)
public:
PlayerInfo(
long long node,
String^ name,
int x,
int y,
PlayerInfoDirection dir,
PlayerInfoState state,
Color color
)
Parameters
- node
- Type: SystemInt64
Player node id - name
- Type: SystemString
Player name - x
- Type: SystemInt32
Player position x - y
- Type: SystemInt32
Player position y - dir
- Type: INF1771_GameClient.dtoPlayerInfoDirection
Player direction (north, southk, east or west) - state
- Type: INF1771_GameClient.dtoPlayerInfoState
Player state (ready, game, dead or gameover) - color
- Type: System.DrawingColor
Player color (R, G, B)
See Also