C# Class turnManager, Main-Working-Repository

Exibir arquivo Open project: GCSShatteredSpace/Main-Working-Repository Class Usage Examples

Public Methods

Method Description
addPlayer ( player, p ) : void
attemptToMove ( Vector2 movement, Vector2 extraMovement, int playerId ) : void
endOfPlayerMovement ( ) : bool
finishAction ( int playerId ) : void
getFinishedPlayers ( ) : int
getReady ( ) : void
getTime ( ) : int
getTurn ( ) : int
playerTakeTurretDamage ( player, p ) : void
stopMovement ( ) : void

Private Methods

Method Description
Start ( ) : void
appendLists ( List l1, List l2 ) : List[]
calculateCollision ( Vector2 endPos, Vector2 v ) : List[]
calculateMapCollision ( Vector2 endPos, Vector2 v ) : List[]
calculatePlayerCollision ( Vector2 endPos, Vector2 v ) : List[]
calculateStepSequence ( ) : void
clock ( ) : IEnumerator
demoCalculateStepSequence ( ) : void
endCurrentStep ( ) : void
endTurn ( ) : void
getReadyPlayers ( ) : int
resetTurn ( ) : void
startTurn ( ) : void

Method Details

addPlayer() public method

public addPlayer ( player, p ) : void
p player,
return void

attemptToMove() public method

public attemptToMove ( Vector2 movement, Vector2 extraMovement, int playerId ) : void
movement Vector2
extraMovement Vector2
playerId int
return void

endOfPlayerMovement() public method

public endOfPlayerMovement ( ) : bool
return bool

finishAction() public method

public finishAction ( int playerId ) : void
playerId int
return void

getFinishedPlayers() public method

public getFinishedPlayers ( ) : int
return int

getReady() public method

public getReady ( ) : void
return void

getTime() public method

public getTime ( ) : int
return int

getTurn() public method

public getTurn ( ) : int
return int

playerTakeTurretDamage() public method

public playerTakeTurretDamage ( player, p ) : void
p player,
return void

stopMovement() public method

public stopMovement ( ) : void
return void