C# Class PlayerManager, Castle-Bashers

Inheritance: MonoBehaviour
Exibir arquivo Open project: DevelopersGuild/Castle-Bashers Class Usage Examples

Public Methods

Method Description
getAvgLevel ( ) : float
getPlayers ( ) : Player[]
getPosition ( int f ) : Vector3
getSize ( ) : int
getSortedPlayers ( int f ) : Player[]

1 for threat, 2 for damage, 3 for priority

getUpPlayer ( ) : Player

Private Methods

Method Description
GetAllDown ( ) : void
SortByDamage ( Player p1, Player p2 ) : int
SortByPriority ( Player p1, Player p2 ) : int
SortByThreat ( Player p1, Player p2 ) : int
Start ( ) : void
Update ( ) : void

Method Details

getAvgLevel() public method

public getAvgLevel ( ) : float
return float

getPlayers() public method

public getPlayers ( ) : Player[]
return Player[]

getPosition() public method

public getPosition ( int f ) : Vector3
f int
return Vector3

getSize() public method

public getSize ( ) : int
return int

getSortedPlayers() public method

1 for threat, 2 for damage, 3 for priority
public getSortedPlayers ( int f ) : Player[]
f int
return Player[]

getUpPlayer() public method

public getUpPlayer ( ) : Player
return Player