C# Class StateController

Inheritance: MonoBehaviour
Datei anzeigen Open project: BornToGrill/Project-Frequency Class Usage Examples

Public Properties

Property Type Description
EndTurnButton GameObject
Units GameObject[]

Public Methods

Method Description
CashChanged ( int id, int newValue ) : void
CreateUnit ( int targetX, int targetY, string unitType, int ownerId ) : void
EndTurn ( string name, int id ) : void
GameLoaded ( ) : void
GameWon ( int winner, int losers ) : void
MoveToAttack ( int startX, int startY, int endX, int endY ) : void
MoveToEmpty ( int startX, int startY, int endX, int endY ) : void
MoveToMerge ( int startX, int startY, int endX, int endY ) : void
OnDestroy ( ) : void
OnEnable ( ) : void
PlayerLeft ( int id, string name ) : void
Send ( string message ) : void
ServerDisconnected ( ) : void
SetPlayers ( string names, int ids ) : void
SplitUnit ( int startX, int startY, int endX, int endY, int amount ) : void

Method Details

CashChanged() public method

public CashChanged ( int id, int newValue ) : void
id int
newValue int
return void

CreateUnit() public method

public CreateUnit ( int targetX, int targetY, string unitType, int ownerId ) : void
targetX int
targetY int
unitType string
ownerId int
return void

EndTurn() public method

public EndTurn ( string name, int id ) : void
name string
id int
return void

GameLoaded() public method

public GameLoaded ( ) : void
return void

GameWon() public method

public GameWon ( int winner, int losers ) : void
winner int
losers int
return void

MoveToAttack() public method

public MoveToAttack ( int startX, int startY, int endX, int endY ) : void
startX int
startY int
endX int
endY int
return void

MoveToEmpty() public method

public MoveToEmpty ( int startX, int startY, int endX, int endY ) : void
startX int
startY int
endX int
endY int
return void

MoveToMerge() public method

public MoveToMerge ( int startX, int startY, int endX, int endY ) : void
startX int
startY int
endX int
endY int
return void

OnDestroy() public method

public OnDestroy ( ) : void
return void

OnEnable() public method

public OnEnable ( ) : void
return void

PlayerLeft() public method

public PlayerLeft ( int id, string name ) : void
id int
name string
return void

Send() public method

public Send ( string message ) : void
message string
return void

ServerDisconnected() public method

public ServerDisconnected ( ) : void
return void

SetPlayers() public method

public SetPlayers ( string names, int ids ) : void
names string
ids int
return void

SplitUnit() public method

public SplitUnit ( int startX, int startY, int endX, int endY, int amount ) : void
startX int
startY int
endX int
endY int
amount int
return void

Property Details

EndTurnButton public_oe property

public GameObject EndTurnButton
return GameObject

Units public_oe property

public GameObject[] Units
return GameObject[]