C# Class CloudWars.DataAccess.Sql.CloudWarsData

Expose functionality
显示文件 Open project: pedro-ramirez-suarez/cloudwarsgame

Public Methods

Method Description
AcceptChallenge ( System.Guid challengeId ) : void
ActiveMatches ( ) : int
AddNotification ( PlayerNotification notification ) : void
ChallengePlayer ( System.Guid fromId, System.Guid toId ) : System.Guid
CreateMatch ( System.Guid player1, System.Guid player2 ) : System.Guid

Instantiate a match in the DB

DeleteMatch ( System.Guid matchId ) : void
GetChallenge ( System.Guid challengeId ) : Challenge
GetClientId ( System.Guid playerId ) : string
GetMatch ( System.Guid matchId ) : Match
GetMatches ( ) : IEnumerable
GetOnlinePlayers ( ) : IEnumerable
GetOnlinePlayers ( string liveId ) : IEnumerable
GetOnlinePlayersNearBy ( string liveId ) : IEnumerable
GetPlayer ( System.Guid playerId ) : Player
GetPlayerId ( string clientId ) : System.Guid
GetPlayerName ( string clientId ) : string
GetPlayers ( ) : IEnumerable
GetTop10Players ( ) : IEnumerable
GetUnits ( System.Guid matchId ) : IEnumerable
IsPlayingMatch ( System.Guid playerId ) : Guid?
OnlinePlayers ( ) : int
PlayerIsOnline ( string liveId, string clientId, double latitude, double longitude ) : void
PlayerLose ( System.Guid playerId ) : void
PlayerWin ( System.Guid playerId ) : void
RejectChallenge ( System.Guid challengeId ) : void
UpdateMatch ( object values, object where ) : void
UpdateMatchUnit ( object values, object where ) : void
UpdatePlayer ( Player player ) : void
UpdatePlayer ( object values, object where ) : void

Private Methods

Method Description
DeleteChallenge ( System.Guid challengeId ) : void

Method Details

AcceptChallenge() public static method

public static AcceptChallenge ( System.Guid challengeId ) : void
challengeId System.Guid
return void

ActiveMatches() public static method

public static ActiveMatches ( ) : int
return int

AddNotification() public static method

public static AddNotification ( PlayerNotification notification ) : void
notification CloudWars.Entities.Game.PlayerNotification
return void

ChallengePlayer() public static method

public static ChallengePlayer ( System.Guid fromId, System.Guid toId ) : System.Guid
fromId System.Guid
toId System.Guid
return System.Guid

CreateMatch() public static method

Instantiate a match in the DB
public static CreateMatch ( System.Guid player1, System.Guid player2 ) : System.Guid
player1 System.Guid Player1 is rebels
player2 System.Guid Player2 is empire
return System.Guid

DeleteMatch() public static method

public static DeleteMatch ( System.Guid matchId ) : void
matchId System.Guid
return void

GetChallenge() public static method

public static GetChallenge ( System.Guid challengeId ) : Challenge
challengeId System.Guid
return CloudWars.Entities.Game.Challenge

GetClientId() public static method

public static GetClientId ( System.Guid playerId ) : string
playerId System.Guid
return string

GetMatch() public static method

public static GetMatch ( System.Guid matchId ) : Match
matchId System.Guid
return CloudWars.Entities.Game.Match

GetMatches() public static method

public static GetMatches ( ) : IEnumerable
return IEnumerable

GetOnlinePlayers() public static method

public static GetOnlinePlayers ( ) : IEnumerable
return IEnumerable

GetOnlinePlayers() public static method

public static GetOnlinePlayers ( string liveId ) : IEnumerable
liveId string
return IEnumerable

GetOnlinePlayersNearBy() public static method

public static GetOnlinePlayersNearBy ( string liveId ) : IEnumerable
liveId string
return IEnumerable

GetPlayer() public static method

public static GetPlayer ( System.Guid playerId ) : Player
playerId System.Guid
return CloudWars.Entities.Player.Player

GetPlayerId() public static method

public static GetPlayerId ( string clientId ) : System.Guid
clientId string
return System.Guid

GetPlayerName() public static method

public static GetPlayerName ( string clientId ) : string
clientId string
return string

GetPlayers() public static method

public static GetPlayers ( ) : IEnumerable
return IEnumerable

GetTop10Players() public static method

public static GetTop10Players ( ) : IEnumerable
return IEnumerable

GetUnits() public static method

public static GetUnits ( System.Guid matchId ) : IEnumerable
matchId System.Guid
return IEnumerable

IsPlayingMatch() public static method

public static IsPlayingMatch ( System.Guid playerId ) : Guid?
playerId System.Guid
return Guid?

OnlinePlayers() public static method

public static OnlinePlayers ( ) : int
return int

PlayerIsOnline() public static method

public static PlayerIsOnline ( string liveId, string clientId, double latitude, double longitude ) : void
liveId string
clientId string
latitude double
longitude double
return void

PlayerLose() public static method

public static PlayerLose ( System.Guid playerId ) : void
playerId System.Guid
return void

PlayerWin() public static method

public static PlayerWin ( System.Guid playerId ) : void
playerId System.Guid
return void

RejectChallenge() public static method

public static RejectChallenge ( System.Guid challengeId ) : void
challengeId System.Guid
return void

UpdateMatch() public static method

public static UpdateMatch ( object values, object where ) : void
values object
where object
return void

UpdateMatchUnit() public static method

public static UpdateMatchUnit ( object values, object where ) : void
values object
where object
return void

UpdatePlayer() public static method

public static UpdatePlayer ( Player player ) : void
player CloudWars.Entities.Player.Player
return void

UpdatePlayer() public static method

public static UpdatePlayer ( object values, object where ) : void
values object
where object
return void