C# Class Octgn.Play.Card

Inheritance: Octgn.Play.ControllableObject
Exibir arquivo Open project: octgn/OCTGN Class Usage Examples

Public Properties

Property Type Description
PropertyOverrides Dictionary>

Private Properties

Property Type Description
AddMarker void
AddMarker void
Card System
Find Card
FindMarker Octgn.Play.Marker
FindRemovedMarker Octgn.Play.Marker
GetBitmapImage System.Windows.Media.Imaging.BitmapImage
IsVisibleToAll bool
MoveCardsTo void
MoveCardsTo void
MoveCardsTo void
NotControlledError void
Remove void
RemoveMarker int
RemoveMarker void
Reset void
SetFaceUp void
SetFilter void
SetHighlight void
SetMarker void
SetModel void
SetOrientation void
SetOverrideGroupVisibility void
SetTargetedBy void
SetVisibility void
TryToManipulate bool
hasProperty bool

Public Methods

Method Description
AllCards ( ) : Octgn.Play.Card[]
Alternate ( ) : string
Alternates ( ) : string[]
GetIndex ( ) : int
GetProperty ( string name, object defaultReturn = null, System.StringComparison scompare = StringComparison.InvariantCulture, string alternate = null ) : object
IsProxy ( ) : bool
MoveCardsToTable ( Card cards, Action it, bool isScriptMove ) : void
MoveCardsToTable ( Card cards, int x, int y, bool lFaceUp, int idx, bool isScriptMove ) : void
MoveTo ( Group to, bool lFaceUp, bool isScriptMove ) : void
MoveTo ( Group to, bool lFaceUp, int idx, bool isScriptMove ) : void
MoveToTable ( int x, int y, bool lFaceUp, int idx, bool isScriptMove ) : void
MoveToTableRawStyle ( int x, int y, bool lFaceUp, int idx, bool isScriptMove ) : void
Peek ( ) : void
ResetProperties ( bool notifyServer = true ) : void
SetAnchored ( bool networked, bool anchored ) : void
SetIndex ( int idx ) : void
SetProperty ( string name, string val, bool notifyServer = true ) : void
SetSleeve ( int sleeveId ) : void
SetSleeve ( string pleeveUrl ) : void
SwitchTo ( Octgn.Play.Player player, string alternate = "", bool notifyServer = true ) : void
Target ( Card otherCard, bool isScriptChange ) : void
Target ( bool isScriptChange ) : void
ToString ( ) : string
ToggleTarget ( bool isScriptChange ) : void
Untarget ( bool isScriptChange ) : void

Protected Methods

Method Description
OnControllerChanged ( ) : void

Private Methods

Method Description
AddMarker ( DataNew model ) : void
AddMarker ( DataNew model, ushort count ) : void
Card ( Octgn.Play.Player owner, int id, DataNew model, bool mySecret, string cardsize ) : System
Find ( int id ) : Card
FindMarker ( System.Guid lId, string name ) : Octgn.Play.Marker
FindRemovedMarker ( System.Guid lId, string name ) : Octgn.Play.Marker
GetBitmapImage ( bool up, bool proxyOnly = false ) : BitmapImage
IsVisibleToAll ( ) : bool
MoveCardsTo ( Group to, Card cards, Action it, bool isScriptMove ) : void
MoveCardsTo ( Group to, Card cards, bool faceup, bool isScriptMove ) : void
MoveCardsTo ( Group to, Card cards, bool faceups, int idxs, bool isScriptMove ) : void
NotControlledError ( ) : void
Remove ( Card card ) : void
RemoveMarker ( Octgn.Play.Marker marker, ushort count ) : int
RemoveMarker ( Octgn.Play.Marker marker ) : void
Reset ( ) : void
SetFaceUp ( bool lFaceUp ) : void
SetFilter ( Color value ) : void
SetHighlight ( Color value ) : void
SetMarker ( Octgn.Play.Player player, System.Guid lId, string name, int count, bool notify = true ) : void
SetModel ( DataNew model ) : void
SetOrientation ( CardOrientation value ) : void
SetOverrideGroupVisibility ( bool overrides ) : void
SetTargetedBy ( Octgn.Play.Player player ) : void
SetVisibility ( GroupVisibility visibility, List viewers ) : void
TryToManipulate ( ) : bool
hasProperty ( string propertyName ) : bool

Method Details

AllCards() public static method

public static AllCards ( ) : Octgn.Play.Card[]
return Octgn.Play.Card[]

Alternate() public method

public Alternate ( ) : string
return string

Alternates() public method

public Alternates ( ) : string[]
return string[]

GetIndex() public method

public GetIndex ( ) : int
return int

GetProperty() public method

public GetProperty ( string name, object defaultReturn = null, System.StringComparison scompare = StringComparison.InvariantCulture, string alternate = null ) : object
name string
defaultReturn object
scompare System.StringComparison
alternate string
return object

IsProxy() public method

public IsProxy ( ) : bool
return bool

MoveCardsToTable() public static method

public static MoveCardsToTable ( Card cards, Action it, bool isScriptMove ) : void
cards Card
it Action
isScriptMove bool
return void

MoveCardsToTable() public static method

public static MoveCardsToTable ( Card cards, int x, int y, bool lFaceUp, int idx, bool isScriptMove ) : void
cards Card
x int
y int
lFaceUp bool
idx int
isScriptMove bool
return void

MoveTo() public method

public MoveTo ( Group to, bool lFaceUp, bool isScriptMove ) : void
to Group
lFaceUp bool
isScriptMove bool
return void

MoveTo() public method

public MoveTo ( Group to, bool lFaceUp, int idx, bool isScriptMove ) : void
to Group
lFaceUp bool
idx int
isScriptMove bool
return void

MoveToTable() public method

public MoveToTable ( int x, int y, bool lFaceUp, int idx, bool isScriptMove ) : void
x int
y int
lFaceUp bool
idx int
isScriptMove bool
return void

MoveToTableRawStyle() public method

public MoveToTableRawStyle ( int x, int y, bool lFaceUp, int idx, bool isScriptMove ) : void
x int
y int
lFaceUp bool
idx int
isScriptMove bool
return void

OnControllerChanged() protected method

protected OnControllerChanged ( ) : void
return void

Peek() public method

public Peek ( ) : void
return void

ResetProperties() public method

public ResetProperties ( bool notifyServer = true ) : void
notifyServer bool
return void

SetAnchored() public method

public SetAnchored ( bool networked, bool anchored ) : void
networked bool
anchored bool
return void

SetIndex() public method

public SetIndex ( int idx ) : void
idx int
return void

SetProperty() public method

public SetProperty ( string name, string val, bool notifyServer = true ) : void
name string
val string
notifyServer bool
return void

SetSleeve() public method

public SetSleeve ( int sleeveId ) : void
sleeveId int
return void

SetSleeve() public method

public SetSleeve ( string pleeveUrl ) : void
pleeveUrl string
return void

SwitchTo() public method

public SwitchTo ( Octgn.Play.Player player, string alternate = "", bool notifyServer = true ) : void
player Octgn.Play.Player
alternate string
notifyServer bool
return void

Target() public method

public Target ( Card otherCard, bool isScriptChange ) : void
otherCard Card
isScriptChange bool
return void

Target() public method

public Target ( bool isScriptChange ) : void
isScriptChange bool
return void

ToString() public method

public ToString ( ) : string
return string

ToggleTarget() public method

public ToggleTarget ( bool isScriptChange ) : void
isScriptChange bool
return void

Untarget() public method

public Untarget ( bool isScriptChange ) : void
isScriptChange bool
return void

Property Details

PropertyOverrides public_oe property

public Dictionary> PropertyOverrides
return Dictionary>