Machinations

Public Member Functions | Properties | List of all members
Machinations.UserComponents.CardInstance Class Reference
Inheritance diagram for Machinations.UserComponents.CardInstance:

## Public Member Functions

| CardInstance (Cards cards, int instanceNumber)
| CardInstance (Cards cards)
void | ReloadCard (bool inform)
override IUserComponentSchema | GetUcScheme ()
override bool | IsSimilar (IUserComponentInstance model)
override void | UpdateOuters ()
override void | AppendToGraph (Graph graph)
override void | AddLoadedOuterInOut (OuterInOut inOut)
override XmlElement | GenerateXml (XmlDocument document, XmlElement element=null)
override void | ReadXml (XmlElement element)
void | TakeCard ()
void | OnCardChanged ()
Public Member Functions inherited from Machinations.UserComponents.UcInstanceBase
override void | AddInput (MachinationsConnection connection)
override Point | GetPosition ()
override void | CopyShift ()
override XmlElement | GenerateXml (XmlDocument document, XmlElement element=null)
override void | ReadXml (XmlElement element)
void | Zip ()
void | UnZip ()
void | ZipUnzipGraphElements ()
Public Member Functions inherited from Machinations.FromFlash.graph.GraphElement
virtual void | Dispose ()
virtual void | UpdateDescription ()
virtual void | FinishLoading (List< GraphElement > elements)
virtual void | AddOutput (MachinationsConnection connection)
virtual void | RemoveInput (MachinationsConnection connection)
virtual void | RemoveOutput (MachinationsConnection connection)
object | Clone ()
virtual void | MoveBy (double x, double y, double z=0)
virtual void | MoveTo (double x, double y, double z=0)
virtual string | ToMMString ()
virtual string | GetMMName ()
string | GetMMExp ()
void | OnChanged (string reason, string message=null)
void | InhibitedChangeApply ()
void | TurnPoolsApply ()
void | Selected ()
void | UnSelected ()
Public Member Functions inherited from Machinations.UserComponents.IUserComponentInstance
void | Dispose ()

## Properties

override int | CurrentCard`[get, set]`
UserComponent | Card`[get]`
UserComponent | DummyComponent`[get]`
Cards | Cards`[get, set]`
override UserComponentGraph | InternalGraph`[get]`
override IEnumerable< GraphElement > | PresentedElements`[get]`
override UserComponentType | Type`[get]`
override IEnumerable< InnerInOut > | MyInnerInOuts`[get]`
override int | InstanceNumber`[get]`
Properties inherited from Machinations.UserComponents.UcInstanceBase
abstract UserComponentGraph | InternalGraph`[get]`
string | Name`[get, set]`
Point | Position`[get, set]`
int | Radius`[get, set]`
Color | Color`[get, set]`
Action | ComponentChanged`[get, set]`
IEnumerable< OuterInOut > | OuterInOuts`[get]`
IEnumerable< MachinationsNode > | ClickableNodes`[get]`
bool | IsZipped`[get]`
abstract int | CurrentCard`[get, set]`
abstract IEnumerable< GraphElement > | PresentedElements`[get]`
abstract int | InstanceNumber`[get]`
abstract UserComponentType | Type`[get]`
abstract IEnumerable< InnerInOut > | MyInnerInOuts`[get]`
Properties inherited from Machinations.FromFlash.graph.GraphElement
virtual IEnumerable< GraphConnection > | Inputs`[get]`
List< Pool > | TurnPools`[get, set]`
int | Id`[get, set]`
string | Description`[get]`
virtual IEnumerable< GraphConnection > | Outputs`[get]`
Graph | Graph`[get, set]`
Action | InhibitedChanged`[get, set]`
virtual bool | Inhibited`[get, set]`
Properties inherited from Machinations.UserComponents.IUserComponentInstance
UserComponentGraph | InternalGraph`[get]`
List< GraphElement > | UnzippedElements`[get]`
Action | InhibitedChanged`[get, set]`
string | Name`[get, set]`
Point | Position`[get, set]`
int | Radius`[get, set]`
int | CurrentCard`[get, set]`
bool | Inhibited`[get, set]`
Color | Color`[get, set]`
Action | ComponentChanged`[get, set]`
IEnumerable< GraphElement > | PresentedElements`[get]`
IEnumerable< OuterInOut > | OuterInOuts`[get]`
int | InstanceNumber`[get]`
UserComponentType | Type`[get]`

## Additional Inherited Members

Public Attributes inherited from Machinations.UserComponents.UcInstanceBase
List< GraphElement > | UnzippedElements => m_unzippedElements ?? InternalGraph.Elements
Public Attributes inherited from Machinations.FromFlash.graph.GraphElement
Action | DescriptionChanged
Protected Member Functions inherited from Machinations.UserComponents.UcInstanceBase
| UcInstanceBase ()
void | CreateMergedInOuts (IEnumerable< InnerInOut > innerInOuts)
void | ZipOrUnzip ()
Protected Member Functions inherited from Machinations.FromFlash.graph.GraphElement
| GraphElement ()
void | DescriptionChange (int order, string text="")
virtual void | InhibitedChangeForReal ()
virtual void | OnPropertyChanged ([CallerMemberName] string propertyName=null)
Protected Attributes inherited from Machinations.UserComponents.UcInstanceBase
string | m_name
Point | m_position
int | m_radius
readonly List< OuterInOut > | m_outerInOuts
readonly List< IInOut > | m_inOuts
bool | m_zip
| pokud je true, je komponenta zabalena, takze jsou videt outer connections, tj spoje mezi ostatnimi castmi grafu a USInputy pokud je false, je komponenta rozbalena,takze je soucasti grafu More...
Protected Attributes inherited from Machinations.FromFlash.graph.GraphElement
int | m_id
Graph | m_graph
| A graph, inside which this element is. During simulation, it should always be Machinations graph More...
List< GraphConnection > | m_inputs
List< GraphConnection > | m_outputs
List< Pool > | m_turnPools
bool | m_inhibited
bool | m_inhibitedNewState
Events inherited from Machinations.FromFlash.graph.GraphElement
EventHandler | Changed
Action | OnSelect
Action | OnUnselect
PropertyChangedEventHandler | PropertyChanged
Events inherited from Machinations.UserComponents.IUserComponentInstance
Action | OnSelect
Action | OnUnselect

## Constructor & Destructor Documentation

## ◆ CardInstance() [1/2]

Machinations.UserComponents.CardInstance.CardInstance | ( | Cards | cards,
|  | int | instanceNumber
| ) |  |

## ◆ CardInstance() [2/2]

Machinations.UserComponents.CardInstance.CardInstance | ( | Cards | cards | ) |

## Member Function Documentation

## ◆ AddLoadedOuterInOut()

override void Machinations.UserComponents.CardInstance.AddLoadedOuterInOut | ( | OuterInOut | inOut | ) |

virtual

Implements Machinations.UserComponents.UcInstanceBase.

## ◆ AppendToGraph()

override void Machinations.UserComponents.CardInstance.AppendToGraph | ( | Graph | graph | ) |

virtual

Implements Machinations.UserComponents.UcInstanceBase.

## ◆ GenerateXml()

override XmlElement Machinations.UserComponents.CardInstance.GenerateXml | ( | XmlDocument | document,
|  | XmlElement | element = `null`
| ) |  |

virtual

Reimplemented from Machinations.FromFlash.graph.GraphElement.

## ◆ GetUcScheme()

override IUserComponentSchema Machinations.UserComponents.CardInstance.GetUcScheme | ( |  | ) |

virtual

Implements Machinations.UserComponents.UcInstanceBase.

## ◆ IsSimilar()

override bool Machinations.UserComponents.CardInstance.IsSimilar | ( | IUserComponentInstance | model | ) |

virtual

Implements Machinations.UserComponents.UcInstanceBase.

## ◆ OnCardChanged()

void Machinations.UserComponents.CardInstance.OnCardChanged | ( |  | ) |

## ◆ ReadXml()

override void Machinations.UserComponents.CardInstance.ReadXml | ( | XmlElement | element | ) |

virtual

Reimplemented from Machinations.FromFlash.graph.GraphElement.

## ◆ ReloadCard()

void Machinations.UserComponents.CardInstance.ReloadCard | ( | bool | inform | ) |

## ◆ TakeCard()

void Machinations.UserComponents.CardInstance.TakeCard | ( |  | ) |

## ◆ UpdateOuters()

override void Machinations.UserComponents.CardInstance.UpdateOuters | ( |  | ) |

virtual

Implements Machinations.UserComponents.UcInstanceBase.

## Property Documentation

## ◆ Card

UserComponent Machinations.UserComponents.CardInstance.Card

get

## ◆ Cards

Cards Machinations.UserComponents.CardInstance.Cards

get set

## ◆ CurrentCard

override int Machinations.UserComponents.CardInstance.CurrentCard

get set

## ◆ DummyComponent

UserComponent Machinations.UserComponents.CardInstance.DummyComponent

get

## ◆ InstanceNumber

override int Machinations.UserComponents.CardInstance.InstanceNumber

get

## ◆ InternalGraph

override UserComponentGraph Machinations.UserComponents.CardInstance.InternalGraph

get

## ◆ MyInnerInOuts

override IEnumerable<InnerInOut> Machinations.UserComponents.CardInstance.MyInnerInOuts

get protected

## ◆ PresentedElements

override IEnumerable<GraphElement> Machinations.UserComponents.CardInstance.PresentedElements

get

## ◆ Type

override UserComponentType Machinations.UserComponents.CardInstance.Type

get

The documentation for this class was generated from the following file:

- UserComponents/CardInstance.cs