C# Class Octgn.Server.Handler

Datei anzeigen Open project: octgn/OCTGN Class Usage Examples

Public Methods

Method Description
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

Private Methods

Method Description
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

Method Details

AddMarkerReq() public method

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
return void

AddPacksReq() public method

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

Binary() public method

public Binary ( ) : void
return void

Boot() public method

public Boot ( byte player, string reason ) : void
player byte
reason string
return void

CancelLimitedReq() public method

public CancelLimitedReq ( ) : void
return void

CardSwitchTo() public method

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

ChatReq() public method

public ChatReq ( string text ) : void
text string
return void

CounterReq() public method

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

CreateAliasDeprecated() public method

public CreateAliasDeprecated ( int arg0, ulong ulongs ) : void
arg0 int
ulongs ulong
return void

CreateCard() public method

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

CreateCardAt() public method

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
return void

DeleteCard() public method

public DeleteCard ( int cardId, byte playerId ) : void
cardId int
playerId byte
return void

DontTakeReq() public method

public DontTakeReq ( int id, byte toPlayer ) : void
id int
toPlayer byte
return void

Error() public method

public Error ( string msg ) : void
msg string
return void

Filter() public method

public Filter ( int card, string color ) : void
card int
color string
return void

FreezeCardsVisibility() public method

public FreezeCardsVisibility ( int group ) : void
group int
return void

GameState() public method

public GameState ( byte player, string state ) : void
player byte
state string
return void

GameStateReq() public method

public GameStateReq ( byte toPlayer ) : void
toPlayer byte
return void

GroupVisAddReq() public method

public GroupVisAddReq ( int gId, byte pId ) : void
gId int
pId byte
return void

GroupVisRemoveReq() public method

public GroupVisRemoveReq ( int gId, byte pId ) : void
gId int
pId byte
return void

GroupVisReq() public method

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

Hello() public method

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
return void

HelloAgain() public method

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
return void

Highlight() public method

public Highlight ( int card, string color ) : void
card int
color string
return void

IsTableBackgroundFlipped() public method

public IsTableBackgroundFlipped ( bool isFlipped ) : void
isFlipped bool
return void

Leave() public method

public Leave ( byte player ) : void
player byte
return void

LoadDeck() public method

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
return void

LookAtBottomReq() public method

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

LookAtReq() public method

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

LookAtTopReq() public method

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

MoveCardAtReq() public method

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
return void

MoveCardReq() public method

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

NextTurn() public method

public NextTurn ( byte nextPlayer, bool force ) : void
nextPlayer byte
force bool
return void

NickReq() public method

public NickReq ( string nick ) : void
nick string
return void

PassToReq() public method

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

PeekReq() public method

public PeekReq ( int card ) : void
card int
return void

PlaySound() public method

public PlaySound ( byte player, string soundName ) : void
player byte
soundName string
return void

PlayerSetGlobalVariable() public method

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

PlayerSettings() public method

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

PrintReq() public method

public PrintReq ( string text ) : void
text string
return void

RandomReq() public method

public RandomReq ( int min, int max ) : void
min int
max int
return void

Ready() public method

public Ready ( byte player ) : void
player byte
return void

RemoteCall() public method

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

RemoveMarkerReq() public method

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
return void

ResetCardProperties() public method

public ResetCardProperties ( int card, byte player ) : void
card int
player byte
return void

ResetReq() public method

public ResetReq ( ) : void
return void

RotateReq() public method

public RotateReq ( int card, CardOrientation rot ) : void
card int
rot CardOrientation
return void

SetBoard() public method

public SetBoard ( string name ) : void
name string
return void

SetGlobalVariable() public method

public SetGlobalVariable ( string name, string oldvalue, string value ) : void
name string
oldvalue string
value string
return void

SetPhase() public method

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

SetPlayerColor() public method

public SetPlayerColor ( byte player, string colorHex ) : void
player byte
colorHex string
return void

Settings() public method

public Settings ( bool twoSidedTable, bool allowSpectators, bool muteSpectators ) : void
twoSidedTable bool
allowSpectators bool
muteSpectators bool
return void

ShuffleDeprecated() public method

public ShuffleDeprecated ( int arg0, int ints ) : void
arg0 int
ints int
return void

Shuffled() public method

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

Start() public method

public Start ( ) : void
return void

StartLimitedReq() public method

public StartLimitedReq ( Guid packs ) : void
packs Guid
return void

StopPhaseReq() public method

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

StopTurnReq() public method

public StopTurnReq ( int lTurnNumber, bool stop ) : void
lTurnNumber int
stop bool
return void

TakeFromReq() public method

public TakeFromReq ( int id, byte fromPlayer ) : void
id int
fromPlayer byte
return void

TargetArrowReq() public method

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

TargetReq() public method

public TargetReq ( int card, bool isScriptChange ) : void
card int
isScriptChange bool
return void

TransferMarkerReq() public method

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
return void

TurnReq() public method

public TurnReq ( int card, bool up ) : void
card int
up bool
return void

UnaliasDeprecated() public method

public UnaliasDeprecated ( int arg0, ulong ulongs ) : void
arg0 int
ulongs ulong
return void

UnaliasGrpDeprecated() public method

public UnaliasGrpDeprecated ( int arg0 ) : void
arg0 int
return void

UntargetReq() public method

public UntargetReq ( int card, bool isScriptChange ) : void
card int
isScriptChange bool
return void