C# 클래스 Octgn.Server.Handler

파일 보기 프로젝트 열기: octgn/OCTGN 1 사용 예제들

공개 메소드들

메소드 설명
AddMarkerReq ( int card, System.Guid id, string name, ushort count, ushort oldCount, bool isScriptChange ) : void
AddPacksReq ( System.Guid packs, bool selfOnly ) : void
Binary ( ) : void
Boot ( byte player, string reason ) : void
CancelLimitedReq ( ) : void
CardSwitchTo ( byte uid, int c, string alternate ) : void
ChatReq ( string text ) : void
CounterReq ( int counter, int value, bool isScriptChange ) : void
CreateAliasDeprecated ( int arg0, ulong ulongs ) : void
CreateCard ( int id, System.Guid type, string size, int @group ) : void
CreateCardAt ( int id, System.Guid modelId, int x, int y, bool faceUp, bool persist ) : void
DeleteCard ( int cardId, byte playerId ) : void
DontTakeReq ( int id, byte toPlayer ) : void
Error ( string msg ) : void
Filter ( int card, string color ) : void
FreezeCardsVisibility ( int group ) : void
GameState ( byte player, string state ) : void
GameStateReq ( byte toPlayer ) : void
GroupVisAddReq ( int gId, byte pId ) : void
GroupVisRemoveReq ( int gId, byte pId ) : void
GroupVisReq ( int id, bool defined, bool visible ) : void
Hello ( string nick, ulong pkey, string client, System.Version clientVer, System.Version octgnVer, System.Guid lGameId, System.Version gameVer, string password, bool spectator ) : void
HelloAgain ( byte pid, string nick, ulong pkey, string client, System.Version clientVer, System.Version octgnVer, System.Guid lGameId, System.Version gameVer, string password ) : void
Highlight ( int card, string color ) : void
IsTableBackgroundFlipped ( bool isFlipped ) : void
Leave ( byte player ) : void
LoadDeck ( int id, System.Guid type, int @group, string size, string sleeveString, bool limited ) : void
LookAtBottomReq ( int uid, int gId, int count, bool look ) : void
LookAtReq ( int uid, int gId, bool look ) : void
LookAtTopReq ( int uid, int gId, int count, bool look ) : void
MoveCardAtReq ( int card, int x, int y, int idx, bool isScriptMove, bool faceUp ) : void
MoveCardReq ( int id, int to, int idx, bool faceUp, bool isScriptMove ) : void
NextTurn ( byte nextPlayer, bool force ) : void
NickReq ( string nick ) : void
PassToReq ( int id, byte player, bool requested ) : void
PeekReq ( int card ) : void
PlaySound ( byte player, string soundName ) : void
PlayerSetGlobalVariable ( byte p, string name, string oldvalue, string value ) : void
PlayerSettings ( byte player, bool invertedTable, bool spectator ) : void
PrintReq ( string text ) : void
RandomReq ( int min, int max ) : void
Ready ( byte player ) : void
RemoteCall ( byte player, string func, string args ) : void
RemoveMarkerReq ( int card, Guid id, string name, ushort count, ushort oldCount, bool isScriptChange ) : void
ResetCardProperties ( int card, byte player ) : void
ResetReq ( ) : void
RotateReq ( int card, CardOrientation rot ) : void
SetBoard ( string name ) : void
SetGlobalVariable ( string name, string oldvalue, string value ) : void
SetPhase ( byte phase, byte nextPhase, bool force ) : void
SetPlayerColor ( byte player, string colorHex ) : void
Settings ( bool twoSidedTable, bool allowSpectators, bool muteSpectators ) : void
ShuffleDeprecated ( int arg0, int ints ) : void
Shuffled ( byte player, int group, int card, short pos ) : void
Start ( ) : void
StartLimitedReq ( Guid packs ) : void
StopPhaseReq ( int lTurnNumber, byte phase, bool stop ) : void
StopTurnReq ( int lTurnNumber, bool stop ) : void
TakeFromReq ( int id, byte fromPlayer ) : void
TargetArrowReq ( int card, int otherCard, bool isScriptChange ) : void
TargetReq ( int card, bool isScriptChange ) : void
TransferMarkerReq ( int from, int to, Guid id, string name, ushort count, ushort oldCount, bool isScriptChange ) : void
TurnReq ( int card, bool up ) : void
UnaliasDeprecated ( int arg0, ulong ulongs ) : void
UnaliasGrpDeprecated ( int arg0 ) : void
UntargetReq ( int card, bool isScriptChange ) : void

비공개 메소드들

메소드 설명
AnchorCard ( int card, byte player, bool anchor ) : void
ErrorAndCloseConnection ( string message ) : void
GetServerVersion ( ) : System.Version
Handler ( ) : System
Ping ( ) : void
ReceiveMessage ( byte data, ServerSocket con ) : void
SetCardProperty ( int card, byte player, string name, string val, string valtype ) : void
SetupHandler ( ServerSocket con ) : void
ValidateHello ( string nick, ulong pkey, string client, Version clientVer, Version octgnVer, Guid lGameId, Version gameVer, string password, bool spectator ) : bool

메소드 상세

AddMarkerReq() 공개 메소드

public AddMarkerReq ( int card, System.Guid id, string name, ushort count, ushort oldCount, bool isScriptChange ) : void
card int
id System.Guid
name string
count ushort
oldCount ushort
isScriptChange bool
리턴 void

AddPacksReq() 공개 메소드

public AddPacksReq ( System.Guid packs, bool selfOnly ) : void
packs System.Guid
selfOnly bool
리턴 void

Binary() 공개 메소드

public Binary ( ) : void
리턴 void

Boot() 공개 메소드

public Boot ( byte player, string reason ) : void
player byte
reason string
리턴 void

CancelLimitedReq() 공개 메소드

public CancelLimitedReq ( ) : void
리턴 void

CardSwitchTo() 공개 메소드

public CardSwitchTo ( byte uid, int c, string alternate ) : void
uid byte
c int
alternate string
리턴 void

ChatReq() 공개 메소드

public ChatReq ( string text ) : void
text string
리턴 void

CounterReq() 공개 메소드

public CounterReq ( int counter, int value, bool isScriptChange ) : void
counter int
value int
isScriptChange bool
리턴 void

CreateAliasDeprecated() 공개 메소드

public CreateAliasDeprecated ( int arg0, ulong ulongs ) : void
arg0 int
ulongs ulong
리턴 void

CreateCard() 공개 메소드

public CreateCard ( int id, System.Guid type, string size, int @group ) : void
id int
type System.Guid
size string
@group int
리턴 void

CreateCardAt() 공개 메소드

public CreateCardAt ( int id, System.Guid modelId, int x, int y, bool faceUp, bool persist ) : void
id int
modelId System.Guid
x int
y int
faceUp bool
persist bool
리턴 void

DeleteCard() 공개 메소드

public DeleteCard ( int cardId, byte playerId ) : void
cardId int
playerId byte
리턴 void

DontTakeReq() 공개 메소드

public DontTakeReq ( int id, byte toPlayer ) : void
id int
toPlayer byte
리턴 void

Error() 공개 메소드

public Error ( string msg ) : void
msg string
리턴 void

Filter() 공개 메소드

public Filter ( int card, string color ) : void
card int
color string
리턴 void

FreezeCardsVisibility() 공개 메소드

public FreezeCardsVisibility ( int group ) : void
group int
리턴 void

GameState() 공개 메소드

public GameState ( byte player, string state ) : void
player byte
state string
리턴 void

GameStateReq() 공개 메소드

public GameStateReq ( byte toPlayer ) : void
toPlayer byte
리턴 void

GroupVisAddReq() 공개 메소드

public GroupVisAddReq ( int gId, byte pId ) : void
gId int
pId byte
리턴 void

GroupVisRemoveReq() 공개 메소드

public GroupVisRemoveReq ( int gId, byte pId ) : void
gId int
pId byte
리턴 void

GroupVisReq() 공개 메소드

public GroupVisReq ( int id, bool defined, bool visible ) : void
id int
defined bool
visible bool
리턴 void

Hello() 공개 메소드

public Hello ( string nick, ulong pkey, string client, System.Version clientVer, System.Version octgnVer, System.Guid lGameId, System.Version gameVer, string password, bool spectator ) : void
nick string
pkey ulong
client string
clientVer System.Version
octgnVer System.Version
lGameId System.Guid
gameVer System.Version
password string
spectator bool
리턴 void

HelloAgain() 공개 메소드

public HelloAgain ( byte pid, string nick, ulong pkey, string client, System.Version clientVer, System.Version octgnVer, System.Guid lGameId, System.Version gameVer, string password ) : void
pid byte
nick string
pkey ulong
client string
clientVer System.Version
octgnVer System.Version
lGameId System.Guid
gameVer System.Version
password string
리턴 void

Highlight() 공개 메소드

public Highlight ( int card, string color ) : void
card int
color string
리턴 void

IsTableBackgroundFlipped() 공개 메소드

public IsTableBackgroundFlipped ( bool isFlipped ) : void
isFlipped bool
리턴 void

Leave() 공개 메소드

public Leave ( byte player ) : void
player byte
리턴 void

LoadDeck() 공개 메소드

public LoadDeck ( int id, System.Guid type, int @group, string size, string sleeveString, bool limited ) : void
id int
type System.Guid
@group int
size string
sleeveString string
limited bool
리턴 void

LookAtBottomReq() 공개 메소드

public LookAtBottomReq ( int uid, int gId, int count, bool look ) : void
uid int
gId int
count int
look bool
리턴 void

LookAtReq() 공개 메소드

public LookAtReq ( int uid, int gId, bool look ) : void
uid int
gId int
look bool
리턴 void

LookAtTopReq() 공개 메소드

public LookAtTopReq ( int uid, int gId, int count, bool look ) : void
uid int
gId int
count int
look bool
리턴 void

MoveCardAtReq() 공개 메소드

public MoveCardAtReq ( int card, int x, int y, int idx, bool isScriptMove, bool faceUp ) : void
card int
x int
y int
idx int
isScriptMove bool
faceUp bool
리턴 void

MoveCardReq() 공개 메소드

public MoveCardReq ( int id, int to, int idx, bool faceUp, bool isScriptMove ) : void
id int
to int
idx int
faceUp bool
isScriptMove bool
리턴 void

NextTurn() 공개 메소드

public NextTurn ( byte nextPlayer, bool force ) : void
nextPlayer byte
force bool
리턴 void

NickReq() 공개 메소드

public NickReq ( string nick ) : void
nick string
리턴 void

PassToReq() 공개 메소드

public PassToReq ( int id, byte player, bool requested ) : void
id int
player byte
requested bool
리턴 void

PeekReq() 공개 메소드

public PeekReq ( int card ) : void
card int
리턴 void

PlaySound() 공개 메소드

public PlaySound ( byte player, string soundName ) : void
player byte
soundName string
리턴 void

PlayerSetGlobalVariable() 공개 메소드

public PlayerSetGlobalVariable ( byte p, string name, string oldvalue, string value ) : void
p byte
name string
oldvalue string
value string
리턴 void

PlayerSettings() 공개 메소드

public PlayerSettings ( byte player, bool invertedTable, bool spectator ) : void
player byte
invertedTable bool
spectator bool
리턴 void

PrintReq() 공개 메소드

public PrintReq ( string text ) : void
text string
리턴 void

RandomReq() 공개 메소드

public RandomReq ( int min, int max ) : void
min int
max int
리턴 void

Ready() 공개 메소드

public Ready ( byte player ) : void
player byte
리턴 void

RemoteCall() 공개 메소드

public RemoteCall ( byte player, string func, string args ) : void
player byte
func string
args string
리턴 void

RemoveMarkerReq() 공개 메소드

public RemoveMarkerReq ( int card, Guid id, string name, ushort count, ushort oldCount, bool isScriptChange ) : void
card int
id Guid
name string
count ushort
oldCount ushort
isScriptChange bool
리턴 void

ResetCardProperties() 공개 메소드

public ResetCardProperties ( int card, byte player ) : void
card int
player byte
리턴 void

ResetReq() 공개 메소드

public ResetReq ( ) : void
리턴 void

RotateReq() 공개 메소드

public RotateReq ( int card, CardOrientation rot ) : void
card int
rot CardOrientation
리턴 void

SetBoard() 공개 메소드

public SetBoard ( string name ) : void
name string
리턴 void

SetGlobalVariable() 공개 메소드

public SetGlobalVariable ( string name, string oldvalue, string value ) : void
name string
oldvalue string
value string
리턴 void

SetPhase() 공개 메소드

public SetPhase ( byte phase, byte nextPhase, bool force ) : void
phase byte
nextPhase byte
force bool
리턴 void

SetPlayerColor() 공개 메소드

public SetPlayerColor ( byte player, string colorHex ) : void
player byte
colorHex string
리턴 void

Settings() 공개 메소드

public Settings ( bool twoSidedTable, bool allowSpectators, bool muteSpectators ) : void
twoSidedTable bool
allowSpectators bool
muteSpectators bool
리턴 void

ShuffleDeprecated() 공개 메소드

public ShuffleDeprecated ( int arg0, int ints ) : void
arg0 int
ints int
리턴 void

Shuffled() 공개 메소드

public Shuffled ( byte player, int group, int card, short pos ) : void
player byte
group int
card int
pos short
리턴 void

Start() 공개 메소드

public Start ( ) : void
리턴 void

StartLimitedReq() 공개 메소드

public StartLimitedReq ( Guid packs ) : void
packs Guid
리턴 void

StopPhaseReq() 공개 메소드

public StopPhaseReq ( int lTurnNumber, byte phase, bool stop ) : void
lTurnNumber int
phase byte
stop bool
리턴 void

StopTurnReq() 공개 메소드

public StopTurnReq ( int lTurnNumber, bool stop ) : void
lTurnNumber int
stop bool
리턴 void

TakeFromReq() 공개 메소드

public TakeFromReq ( int id, byte fromPlayer ) : void
id int
fromPlayer byte
리턴 void

TargetArrowReq() 공개 메소드

public TargetArrowReq ( int card, int otherCard, bool isScriptChange ) : void
card int
otherCard int
isScriptChange bool
리턴 void

TargetReq() 공개 메소드

public TargetReq ( int card, bool isScriptChange ) : void
card int
isScriptChange bool
리턴 void

TransferMarkerReq() 공개 메소드

public TransferMarkerReq ( int from, int to, Guid id, string name, ushort count, ushort oldCount, bool isScriptChange ) : void
from int
to int
id Guid
name string
count ushort
oldCount ushort
isScriptChange bool
리턴 void

TurnReq() 공개 메소드

public TurnReq ( int card, bool up ) : void
card int
up bool
리턴 void

UnaliasDeprecated() 공개 메소드

public UnaliasDeprecated ( int arg0, ulong ulongs ) : void
arg0 int
ulongs ulong
리턴 void

UnaliasGrpDeprecated() 공개 메소드

public UnaliasGrpDeprecated ( int arg0 ) : void
arg0 int
리턴 void

UntargetReq() 공개 메소드

public UntargetReq ( int card, bool isScriptChange ) : void
card int
isScriptChange bool
리턴 void