C# 클래스 CloudWars.DataAccess.Sql.CloudWarsData

Expose functionality
파일 보기 프로젝트 열기: pedro-ramirez-suarez/cloudwarsgame

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
DeleteChallenge ( System.Guid challengeId ) : void

메소드 상세

AcceptChallenge() 공개 정적인 메소드

public static AcceptChallenge ( System.Guid challengeId ) : void
challengeId System.Guid
리턴 void

ActiveMatches() 공개 정적인 메소드

public static ActiveMatches ( ) : int
리턴 int

AddNotification() 공개 정적인 메소드

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

ChallengePlayer() 공개 정적인 메소드

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

CreateMatch() 공개 정적인 메소드

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
리턴 System.Guid

DeleteMatch() 공개 정적인 메소드

public static DeleteMatch ( System.Guid matchId ) : void
matchId System.Guid
리턴 void

GetChallenge() 공개 정적인 메소드

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

GetClientId() 공개 정적인 메소드

public static GetClientId ( System.Guid playerId ) : string
playerId System.Guid
리턴 string

GetMatch() 공개 정적인 메소드

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

GetMatches() 공개 정적인 메소드

public static GetMatches ( ) : IEnumerable
리턴 IEnumerable

GetOnlinePlayers() 공개 정적인 메소드

public static GetOnlinePlayers ( ) : IEnumerable
리턴 IEnumerable

GetOnlinePlayers() 공개 정적인 메소드

public static GetOnlinePlayers ( string liveId ) : IEnumerable
liveId string
리턴 IEnumerable

GetOnlinePlayersNearBy() 공개 정적인 메소드

public static GetOnlinePlayersNearBy ( string liveId ) : IEnumerable
liveId string
리턴 IEnumerable

GetPlayer() 공개 정적인 메소드

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

GetPlayerId() 공개 정적인 메소드

public static GetPlayerId ( string clientId ) : System.Guid
clientId string
리턴 System.Guid

GetPlayerName() 공개 정적인 메소드

public static GetPlayerName ( string clientId ) : string
clientId string
리턴 string

GetPlayers() 공개 정적인 메소드

public static GetPlayers ( ) : IEnumerable
리턴 IEnumerable

GetTop10Players() 공개 정적인 메소드

public static GetTop10Players ( ) : IEnumerable
리턴 IEnumerable

GetUnits() 공개 정적인 메소드

public static GetUnits ( System.Guid matchId ) : IEnumerable
matchId System.Guid
리턴 IEnumerable

IsPlayingMatch() 공개 정적인 메소드

public static IsPlayingMatch ( System.Guid playerId ) : Guid?
playerId System.Guid
리턴 Guid?

OnlinePlayers() 공개 정적인 메소드

public static OnlinePlayers ( ) : int
리턴 int

PlayerIsOnline() 공개 정적인 메소드

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

PlayerLose() 공개 정적인 메소드

public static PlayerLose ( System.Guid playerId ) : void
playerId System.Guid
리턴 void

PlayerWin() 공개 정적인 메소드

public static PlayerWin ( System.Guid playerId ) : void
playerId System.Guid
리턴 void

RejectChallenge() 공개 정적인 메소드

public static RejectChallenge ( System.Guid challengeId ) : void
challengeId System.Guid
리턴 void

UpdateMatch() 공개 정적인 메소드

public static UpdateMatch ( object values, object where ) : void
values object
where object
리턴 void

UpdateMatchUnit() 공개 정적인 메소드

public static UpdateMatchUnit ( object values, object where ) : void
values object
where object
리턴 void

UpdatePlayer() 공개 정적인 메소드

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

UpdatePlayer() 공개 정적인 메소드

public static UpdatePlayer ( object values, object where ) : void
values object
where object
리턴 void