C# Class Octgn.Server.BaseBinaryStub

Inheritance: Octgn.Server.IClientCalls
Datei anzeigen Open project: octgn/OCTGN

Public Methods

Method Description
AddMarker ( byte player, int card, System.Guid id, string name, ushort count, ushort origCount, bool isScriptChange ) : void
AddPacks ( byte player, System.Guid packs, bool selfOnly ) : void
AnchorCard ( int id, byte player, bool anchor ) : void
BaseBinaryStub ( Handler handler ) : System
Binary ( ) : void
CancelLimited ( byte player ) : void
CardSwitchTo ( byte player, int card, string alternate ) : void
Chat ( byte player, string text ) : void
Counter ( byte player, int counter, int value, bool isScriptChange ) : void
CreateAliasDeprecated ( int id, ulong type ) : 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 card, byte player ) : void
DontTake ( int id ) : void
Error ( string msg ) : void
Filter ( int card, string color ) : void
FreezeCardsVisibility ( int group ) : void
GameState ( byte toPlayer, string state ) : void
GameStateReq ( byte player ) : void
GroupVis ( byte player, int group, bool defined, bool visible ) : void
GroupVisAdd ( byte player, int group, byte who ) : void
GroupVisRemove ( byte player, int group, byte who ) : void
Highlight ( int card, string color ) : void
IsTableBackgroundFlipped ( bool isFlipped ) : void
Kick ( string reason ) : void
Leave ( byte player ) : void
LoadDeck ( int id, System.Guid type, int group, string size, string sleeve, bool limited ) : void
LookAt ( byte player, int uid, int group, bool look ) : void
LookAtBottom ( byte player, int uid, int group, int count, bool look ) : void
LookAtTop ( byte player, int uid, int group, int count, bool look ) : void
MoveCard ( byte player, int id, int group, int idx, bool faceUp, bool isScriptMove ) : void
MoveCardAt ( byte player, int id, int x, int y, int idx, bool faceUp, bool isScriptMove ) : void
NewPlayer ( byte id, string nick, ulong pkey, bool tableSide, bool spectator ) : void
NextTurn ( byte nextPlayer, bool force ) : void
Nick ( byte player, string nick ) : void
PassTo ( byte player, int id, byte to, bool requested ) : void
Peek ( byte player, int card ) : void
Ping ( ) : void
PlaySound ( byte player, string name ) : void
PlayerDisconnect ( byte player ) : void
PlayerSetGlobalVariable ( byte player, string name, string oldval, string val ) : void
PlayerSettings ( byte playerId, bool invertedTable, bool spectator ) : void
PlayerState ( byte player, byte state ) : void
Print ( byte player, string text ) : void
Random ( int result ) : void
Ready ( byte player ) : void
RemoteCall ( byte player, string function, string args ) : void
RemoveMarker ( byte player, int card, System.Guid id, string name, ushort count, ushort origCount, bool isScriptChange ) : void
Reset ( byte player ) : void
ResetCardProperties ( int id, byte player ) : void
Rotate ( byte player, int card, CardOrientation rot ) : void
SetBoard ( string name ) : void
SetCardProperty ( int id, byte player, string name, string val, string valtype ) : void
SetGlobalVariable ( string name, string oldval, string val ) : void
SetPhase ( byte phase, byte nextPhase, bool force ) : void
SetPlayerColor ( byte player, string color ) : void
Settings ( bool twoSidedTable, bool allowSpectators, bool muteSpectators ) : void
ShuffleDeprecated ( int group, int card ) : void
Shuffled ( byte player, int group, int card, short pos ) : void
Start ( ) : void
StartLimited ( byte player, System.Guid packs ) : void
StopPhase ( byte player, byte phase ) : void
StopTurn ( byte player ) : void
TakeFrom ( int id, byte to ) : void
Target ( byte player, int card, bool isScriptChange ) : void
TargetArrow ( byte player, int card, int otherCard, bool isScriptChange ) : void
TransferMarker ( byte player, int from, int to, System.Guid id, string name, ushort count, ushort origCount, bool isScriptChange ) : void
Turn ( byte player, int card, bool up ) : void
UnaliasDeprecated ( int card, ulong type ) : void
UnaliasGrpDeprecated ( int group ) : void
Untarget ( byte player, int card, bool isScriptChange ) : void
Welcome ( byte id, System.Guid gameSessionId, bool waitForGameState ) : void

Protected Methods

Method Description
Send ( byte data ) : void

Method Details

AddMarker() public method

public AddMarker ( byte player, int card, System.Guid id, string name, ushort count, ushort origCount, bool isScriptChange ) : void
player byte
card int
id System.Guid
name string
count ushort
origCount ushort
isScriptChange bool
return void

AddPacks() public method

public AddPacks ( byte player, System.Guid packs, bool selfOnly ) : void
player byte
packs System.Guid
selfOnly bool
return void

AnchorCard() public method

public AnchorCard ( int id, byte player, bool anchor ) : void
id int
player byte
anchor bool
return void

BaseBinaryStub() public method

public BaseBinaryStub ( Handler handler ) : System
handler Handler
return System

Binary() public method

public Binary ( ) : void
return void

CancelLimited() public method

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

CardSwitchTo() public method

public CardSwitchTo ( byte player, int card, string alternate ) : void
player byte
card int
alternate string
return void

Chat() public method

public Chat ( byte player, string text ) : void
player byte
text string
return void

Counter() public method

public Counter ( byte player, int counter, int value, bool isScriptChange ) : void
player byte
counter int
value int
isScriptChange bool
return void

CreateAliasDeprecated() public method

public CreateAliasDeprecated ( int id, ulong type ) : void
id int
type 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 card, byte player ) : void
card int
player byte
return void

DontTake() public method

public DontTake ( int id ) : void
id int
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 toPlayer, string state ) : void
toPlayer byte
state string
return void

GameStateReq() public method

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

GroupVis() public method

public GroupVis ( byte player, int group, bool defined, bool visible ) : void
player byte
group int
defined bool
visible bool
return void

GroupVisAdd() public method

public GroupVisAdd ( byte player, int group, byte who ) : void
player byte
group int
who byte
return void

GroupVisRemove() public method

public GroupVisRemove ( byte player, int group, byte who ) : void
player byte
group int
who byte
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

Kick() public method

public Kick ( string reason ) : void
reason string
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 sleeve, bool limited ) : void
id int
type System.Guid
group int
size string
sleeve string
limited bool
return void

LookAt() public method

public LookAt ( byte player, int uid, int group, bool look ) : void
player byte
uid int
group int
look bool
return void

LookAtBottom() public method

public LookAtBottom ( byte player, int uid, int group, int count, bool look ) : void
player byte
uid int
group int
count int
look bool
return void

LookAtTop() public method

public LookAtTop ( byte player, int uid, int group, int count, bool look ) : void
player byte
uid int
group int
count int
look bool
return void

MoveCard() public method

public MoveCard ( byte player, int id, int group, int idx, bool faceUp, bool isScriptMove ) : void
player byte
id int
group int
idx int
faceUp bool
isScriptMove bool
return void

MoveCardAt() public method

public MoveCardAt ( byte player, int id, int x, int y, int idx, bool faceUp, bool isScriptMove ) : void
player byte
id int
x int
y int
idx int
faceUp bool
isScriptMove bool
return void

NewPlayer() public method

public NewPlayer ( byte id, string nick, ulong pkey, bool tableSide, bool spectator ) : void
id byte
nick string
pkey ulong
tableSide bool
spectator bool
return void

NextTurn() public method

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

Nick() public method

public Nick ( byte player, string nick ) : void
player byte
nick string
return void

PassTo() public method

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

Peek() public method

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

Ping() public method

public Ping ( ) : void
return void

PlaySound() public method

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

PlayerDisconnect() public method

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

PlayerSetGlobalVariable() public method

public PlayerSetGlobalVariable ( byte player, string name, string oldval, string val ) : void
player byte
name string
oldval string
val string
return void

PlayerSettings() public method

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

PlayerState() public method

public PlayerState ( byte player, byte state ) : void
player byte
state byte
return void

Print() public method

public Print ( byte player, string text ) : void
player byte
text string
return void

Random() public method

public Random ( int result ) : void
result int
return void

Ready() public method

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

RemoteCall() public method

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

RemoveMarker() public method

public RemoveMarker ( byte player, int card, System.Guid id, string name, ushort count, ushort origCount, bool isScriptChange ) : void
player byte
card int
id System.Guid
name string
count ushort
origCount ushort
isScriptChange bool
return void

Reset() public method

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

ResetCardProperties() public method

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

Rotate() public method

public Rotate ( byte player, int card, CardOrientation rot ) : void
player byte
card int
rot CardOrientation
return void

Send() protected abstract method

protected abstract Send ( byte data ) : void
data byte
return void

SetBoard() public method

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

SetCardProperty() public method

public SetCardProperty ( int id, byte player, string name, string val, string valtype ) : void
id int
player byte
name string
val string
valtype string
return void

SetGlobalVariable() public method

public SetGlobalVariable ( string name, string oldval, string val ) : void
name string
oldval string
val 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 color ) : void
player byte
color 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 group, int card ) : void
group int
card 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

StartLimited() public method

public StartLimited ( byte player, System.Guid packs ) : void
player byte
packs System.Guid
return void

StopPhase() public method

public StopPhase ( byte player, byte phase ) : void
player byte
phase byte
return void

StopTurn() public method

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

TakeFrom() public method

public TakeFrom ( int id, byte to ) : void
id int
to byte
return void

Target() public method

public Target ( byte player, int card, bool isScriptChange ) : void
player byte
card int
isScriptChange bool
return void

TargetArrow() public method

public TargetArrow ( byte player, int card, int otherCard, bool isScriptChange ) : void
player byte
card int
otherCard int
isScriptChange bool
return void

TransferMarker() public method

public TransferMarker ( byte player, int from, int to, System.Guid id, string name, ushort count, ushort origCount, bool isScriptChange ) : void
player byte
from int
to int
id System.Guid
name string
count ushort
origCount ushort
isScriptChange bool
return void

Turn() public method

public Turn ( byte player, int card, bool up ) : void
player byte
card int
up bool
return void

UnaliasDeprecated() public method

public UnaliasDeprecated ( int card, ulong type ) : void
card int
type ulong
return void

UnaliasGrpDeprecated() public method

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

Untarget() public method

public Untarget ( byte player, int card, bool isScriptChange ) : void
player byte
card int
isScriptChange bool
return void

Welcome() public method

public Welcome ( byte id, System.Guid gameSessionId, bool waitForGameState ) : void
id byte
gameSessionId System.Guid
waitForGameState bool
return void