C# Class NerfTargets.Hubs.ClientCommunication

Afficher le fichier Open project: ImagineLearning/NerfGallery

Méthodes publiques

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

Méthode Description
HideTarget ( string clientId ) : void
ShowTarget ( string clientId ) : void

Method Details

AddClient() public méthode

public AddClient ( string connectionId ) : void
connectionId string
Résultat void

ClientCommunication() public méthode

public ClientCommunication ( ) : System
Résultat System

GameOver() public méthode

public GameOver ( int points ) : void
points int
Résultat void

GetConnectedTargetIds() public méthode

public GetConnectedTargetIds ( ) : List
Résultat List

HideAllTargets() public méthode

public HideAllTargets ( ) : void
Résultat void

LevelEnd() public méthode

public LevelEnd ( string name ) : void
name string
Résultat void

LevelStart() public méthode

public LevelStart ( string name ) : void
name string
Résultat void

RecordHit() public méthode

public RecordHit ( string connectionId, bool good ) : void
connectionId string
good bool
Résultat void

RemoveClient() public méthode

public RemoveClient ( string connectionId ) : void
connectionId string
Résultat void

RestartGame() public méthode

public RestartGame ( ) : void
Résultat void

SetClientId() public méthode

public SetClientId ( string connectionId, int targetNumber ) : void
connectionId string
targetNumber int
Résultat void

ShowCountdown() public méthode

public ShowCountdown ( string text ) : void
text string
Résultat void

ShowRandomTarget() public méthode

public ShowRandomTarget ( int delay ) : void
delay int
Résultat void

ShowTargetByTargetNum() public méthode

public ShowTargetByTargetNum ( int targetNum, System.TimeSpan delay = null ) : void
targetNum int
delay System.TimeSpan
Résultat void