C# Class YGOSharp.OCGWrapper.Duel

ファイルを表示 Open project: IceYGO/ygosharp Class Usage Examples

Public Methods

Method Description
AddCard ( int cardId, int owner, CardLocation location ) : void
AddTagCard ( int cardId, int owner, CardLocation location ) : void
Create ( uint seed ) : Duel
End ( ) : void
GetNativePtr ( ) : IntPtr
InitPlayers ( int startLp, int startHand, int drawCount ) : void
Process ( ) : int
QueryCard ( int player, int location, int sequence, int flag ) : byte[]
QueryFieldCard ( int player, CardLocation location, int flag, bool useCache ) : byte[]
QueryFieldCount ( int player, CardLocation location ) : int
QueryFieldInfo ( ) : byte[]
SetAnalyzer ( Func analyzer ) : void
SetErrorHandler ( Action errorHandler ) : void
SetResponse ( byte resp ) : void
SetResponse ( int resp ) : void
Start ( int options ) : void

Private Methods

Method Description
Create ( IntPtr pDuel ) : Duel
Dispose ( ) : void
Duel ( IntPtr duelPtr ) : System
HandleMessage ( BinaryReader reader, byte raw, int len ) : int
OnMessage ( UInt32 messageType ) : void

Method Details

AddCard() public method

public AddCard ( int cardId, int owner, CardLocation location ) : void
cardId int
owner int
location CardLocation
return void

AddTagCard() public method

public AddTagCard ( int cardId, int owner, CardLocation location ) : void
cardId int
owner int
location CardLocation
return void

Create() public static method

public static Create ( uint seed ) : Duel
seed uint
return Duel

End() public method

public End ( ) : void
return void

GetNativePtr() public method

public GetNativePtr ( ) : IntPtr
return System.IntPtr

InitPlayers() public method

public InitPlayers ( int startLp, int startHand, int drawCount ) : void
startLp int
startHand int
drawCount int
return void

Process() public method

public Process ( ) : int
return int

QueryCard() public method

public QueryCard ( int player, int location, int sequence, int flag ) : byte[]
player int
location int
sequence int
flag int
return byte[]

QueryFieldCard() public method

public QueryFieldCard ( int player, CardLocation location, int flag, bool useCache ) : byte[]
player int
location CardLocation
flag int
useCache bool
return byte[]

QueryFieldCount() public method

public QueryFieldCount ( int player, CardLocation location ) : int
player int
location CardLocation
return int

QueryFieldInfo() public method

public QueryFieldInfo ( ) : byte[]
return byte[]

SetAnalyzer() public method

public SetAnalyzer ( Func analyzer ) : void
analyzer Func
return void

SetErrorHandler() public method

public SetErrorHandler ( Action errorHandler ) : void
errorHandler Action
return void

SetResponse() public method

public SetResponse ( byte resp ) : void
resp byte
return void

SetResponse() public method

public SetResponse ( int resp ) : void
resp int
return void

Start() public method

public Start ( int options ) : void
options int
return void