C# Class StateController

Inheritance: MonoBehaviour
Afficher le fichier Open project: BornToGrill/Project-Frequency Class Usage Examples

Méthodes publiques

Свойство Type Description
EndTurnButton GameObject
Units GameObject[]

Méthodes publiques

Méthode 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 méthode

public CashChanged ( int id, int newValue ) : void
id int
newValue int
Résultat void

CreateUnit() public méthode

public CreateUnit ( int targetX, int targetY, string unitType, int ownerId ) : void
targetX int
targetY int
unitType string
ownerId int
Résultat void

EndTurn() public méthode

public EndTurn ( string name, int id ) : void
name string
id int
Résultat void

GameLoaded() public méthode

public GameLoaded ( ) : void
Résultat void

GameWon() public méthode

public GameWon ( int winner, int losers ) : void
winner int
losers int
Résultat void

MoveToAttack() public méthode

public MoveToAttack ( int startX, int startY, int endX, int endY ) : void
startX int
startY int
endX int
endY int
Résultat void

MoveToEmpty() public méthode

public MoveToEmpty ( int startX, int startY, int endX, int endY ) : void
startX int
startY int
endX int
endY int
Résultat void

MoveToMerge() public méthode

public MoveToMerge ( int startX, int startY, int endX, int endY ) : void
startX int
startY int
endX int
endY int
Résultat void

OnDestroy() public méthode

public OnDestroy ( ) : void
Résultat void

OnEnable() public méthode

public OnEnable ( ) : void
Résultat void

PlayerLeft() public méthode

public PlayerLeft ( int id, string name ) : void
id int
name string
Résultat void

Send() public méthode

public Send ( string message ) : void
message string
Résultat void

ServerDisconnected() public méthode

public ServerDisconnected ( ) : void
Résultat void

SetPlayers() public méthode

public SetPlayers ( string names, int ids ) : void
names string
ids int
Résultat void

SplitUnit() public méthode

public SplitUnit ( int startX, int startY, int endX, int endY, int amount ) : void
startX int
startY int
endX int
endY int
amount int
Résultat void

Property Details

EndTurnButton public_oe property

public GameObject EndTurnButton
Résultat GameObject

Units public_oe property

public GameObject[] Units
Résultat GameObject[]