Photon Unity Networking 2 2.45

Public Member Functions | List of all members
IPunTurnManagerCallbacks Interface Reference

Public Member Functions

void OnTurnBegins (int turn)
 Called the turn begins event. More...
 
void OnTurnCompleted (int turn)
 Called when a turn is completed (finished by all players) More...
 
void OnPlayerMove (Player player, int turn, object move)
 Called when a player moved (but did not finish the turn) More...
 
void OnPlayerFinished (Player player, int turn, object move)
 When a player finishes a turn (includes the action/move of that player) More...
 
void OnTurnTimeEnds (int turn)
 Called when a turn completes due to a time constraint (timeout for a turn) More...
 

Member Function Documentation

◆ OnPlayerFinished()

void OnPlayerFinished ( Player  player,
int  turn,
object  move 
)

When a player finishes a turn (includes the action/move of that player)

Parameters
playerPlayer reference
turnTurn index
moveMove Object data

◆ OnPlayerMove()

void OnPlayerMove ( Player  player,
int  turn,
object  move 
)

Called when a player moved (but did not finish the turn)

Parameters
playerPlayer reference
turnTurn Index
moveMove Object data

◆ OnTurnBegins()

void OnTurnBegins ( int  turn)

Called the turn begins event.

Parameters
turnTurn Index

◆ OnTurnCompleted()

void OnTurnCompleted ( int  turn)

Called when a turn is completed (finished by all players)

Parameters
turnTurn Index

◆ OnTurnTimeEnds()

void OnTurnTimeEnds ( int  turn)

Called when a turn completes due to a time constraint (timeout for a turn)

Parameters
turnTurn index