C# Class ArmedCards.BusinessLogic.AppServices.Game.Leave

Implementation of Base.ILeave
Inheritance: Base.ILeave
Show file Open project: kwmcrell/ArmedCards

Public Methods

Method Description
Execute ( Int32 gameID, Entities user, Entities playerType, System.Boolean forcedToLeave = false ) : void

Removes a player from the game

Execute ( Int32 gameID, Int32 userId, String displayName, Entities playerType ) : void

Removes a player from the game

Leave ( ArmedCards.BusinessLogic.DomainServices leaveGame, Game selectGame, Hubs sendMessage, GameRound startRound, GameRound deleteRound, Base updateGame, GamePlayerCard dealCards ) : System

Method Details

Execute() public method

Removes a player from the game
public Execute ( Int32 gameID, Entities user, Entities playerType, System.Boolean forcedToLeave = false ) : void
gameID System.Int32 The ID of the game to leave
user Entities The user leaving the game
playerType Entities Type of player leaving
forcedToLeave System.Boolean The player was forced to leave
return void

Execute() public method

Removes a player from the game
public Execute ( Int32 gameID, Int32 userId, String displayName, Entities playerType ) : void
gameID System.Int32 The ID of the game to leave
userId System.Int32 The user id of the user leaving the game
displayName String The user display name of the user leaving the game
playerType Entities Type of player leaving
return void

Leave() public method

public Leave ( ArmedCards.BusinessLogic.DomainServices leaveGame, Game selectGame, Hubs sendMessage, GameRound startRound, GameRound deleteRound, Base updateGame, GamePlayerCard dealCards ) : System
leaveGame ArmedCards.BusinessLogic.DomainServices
selectGame Game
sendMessage Hubs
startRound GameRound
deleteRound GameRound
updateGame Base
dealCards GamePlayerCard
return System