C# Class Server.Data

Show file Open project: pmyoung/Advanced-Game-Project Class Usage Examples

Public Properties

Property Type Description
cmdCommand Server.Command
direction string
id int
player1x int
player1y int
player2x int
player2y int
playerID int
strMessage string
strName string

Public Methods

Method Description
Data ( ) : System
Data ( byte data ) : System
ToByte ( List playerList, List bulletList, List removeids, int playercount, List planetList ) : byte[]

Converts the Data structure into an array of bytes

ToByte ( List playerList, int playercount ) : byte[]

Method Details

Data() public method

public Data ( ) : System
return System

Data() public method

public Data ( byte data ) : System
data byte
return System

ToByte() public method

Converts the Data structure into an array of bytes
public ToByte ( List playerList, List bulletList, List removeids, int playercount, List planetList ) : byte[]
playerList List A list that contains the players instance
bulletList List A list that contains the Bullets instance
removeids List A list that contains the id of the object removed
playercount int The number of player currently in the game
planetList List A list that contains the Planets instance
return byte[]

ToByte() public method

public ToByte ( List playerList, int playercount ) : byte[]
playerList List
playercount int
return byte[]

Property Details

cmdCommand public property

public Command,Server cmdCommand
return Server.Command

direction public property

public string direction
return string

id public property

public int id
return int

player1x public property

public int player1x
return int

player1y public property

public int player1y
return int

player2x public property

public int player2x
return int

player2y public property

public int player2y
return int

playerID public property

public int playerID
return int

strMessage public property

public string strMessage
return string

strName public property

public string strName
return string