C# Class NerfTargets.Hubs.ClientCommunication

Exibir arquivo Open project: ImagineLearning/NerfGallery

Public Methods

Method Description
AddClient ( string connectionId ) : void
ClientCommunication ( ) : System
GameOver ( int points ) : void
GetConnectedTargetIds ( ) : List
HideAllTargets ( ) : void
LevelEnd ( string name ) : void
LevelStart ( string name ) : void
RecordHit ( string connectionId, bool good ) : void
RemoveClient ( string connectionId ) : void
RestartGame ( ) : void
SetClientId ( string connectionId, int targetNumber ) : void
ShowCountdown ( string text ) : void
ShowRandomTarget ( int delay ) : void
ShowTargetByTargetNum ( int targetNum, System.TimeSpan delay = null ) : void

Private Methods

Method Description
HideTarget ( string clientId ) : void
ShowTarget ( string clientId ) : void

Method Details

AddClient() public method

public AddClient ( string connectionId ) : void
connectionId string
return void

ClientCommunication() public method

public ClientCommunication ( ) : System
return System

GameOver() public method

public GameOver ( int points ) : void
points int
return void

GetConnectedTargetIds() public method

public GetConnectedTargetIds ( ) : List
return List

HideAllTargets() public method

public HideAllTargets ( ) : void
return void

LevelEnd() public method

public LevelEnd ( string name ) : void
name string
return void

LevelStart() public method

public LevelStart ( string name ) : void
name string
return void

RecordHit() public method

public RecordHit ( string connectionId, bool good ) : void
connectionId string
good bool
return void

RemoveClient() public method

public RemoveClient ( string connectionId ) : void
connectionId string
return void

RestartGame() public method

public RestartGame ( ) : void
return void

SetClientId() public method

public SetClientId ( string connectionId, int targetNumber ) : void
connectionId string
targetNumber int
return void

ShowCountdown() public method

public ShowCountdown ( string text ) : void
text string
return void

ShowRandomTarget() public method

public ShowRandomTarget ( int delay ) : void
delay int
return void

ShowTargetByTargetNum() public method

public ShowTargetByTargetNum ( int targetNum, System.TimeSpan delay = null ) : void
targetNum int
delay System.TimeSpan
return void