Machinations

Public Member Functions | Public Attributes | Protected Member Functions | Properties | Events | List of all members
Machinations.FromFlash.machinations.model.MachinationsGraph Class Reference

Subclass of Graph, holds Machinations elements and controls the simulation More...

Inheritance diagram for Machinations.FromFlash.machinations.model.MachinationsGraph:

## Public Member Functions

| MachinationsGraph ()
override void | Clear ()
override XmlDocument | GenerateXml ()
void | LoadGraphSettings (XmlElement graphElement)
void | End (string condition)
void | Prepare ()
void | Update (double time, bool DoEvents)
double | GetDiceValue ()
double | GetSkillValue ()
double | GetStrategyValue ()
double | GetMultiplayerValue ()
List< MachinationsNode > | FindAllNodesByCaptionAndColor (string caption, Color color)
MachinationsNode | FindNodeByCaptionAndColor (string caption, Color color)
List< MachinationsNode > | FindAllNodesByCaption (string caption)
MachinationsNode | FindNodeByCaption (string caption)
void | PushToTop (GraphElement element)
void | MoreTurns (int count)
void | OneTurn ()
void | OneTurnWithoutUserActions ()
override void | RemoveElement (GraphElement element)
void | FinishTurn ()
Public Member Functions inherited from Machinations.FromFlash.graph.Graph
| Graph ()
void | AddElement (GraphElement element)
void | FillXmlElement (XmlElement filled)
virtual void | OnChanged (string reason, string message=null)
ResourceConnection | CreateResourceConnection (GraphElement startElement, GraphElement endElement, Color color, string labelText=null)
StateConnection | CreateStateConnection (GraphElement startElement, GraphElement endElement, Color color, string labelText=null)
Point | GetCenter ()
Int32Rect | GetRectangle ()

## Public Attributes

double | FireInterval
double | ResourceSpeed
int | OriginalActionsPerTurn
int | ActionsPerTurn
int | ActionsThisTurn
string | Name
string | Author
string | Dice
string | Skill
string | Strategy
string | Multiplayer
TimeMode | TimeMode
DistributionMode | DistributionMode
bool | ColorCoding
string | EndCondition
bool | DoEvents

## Protected Member Functions

virtual void | OnPropertyChanged ([CallerMemberName] string propertyName=null)
Protected Member Functions inherited from Machinations.FromFlash.graph.Graph
void | SortAndSetIds ()

## Properties

bool | InhibitionChange`[get, set]`
ObservableCollection< Pool > | TurnPools`[get]`
bool | Running`[get, set]`
int | Width`[get, set]`
int | Height`[get, set]`
ILog | Log`[get, set]`
int | Step`[get, set]`
bool | Ended`[get, set]`
List< MachinationsNode > | ClickableNodes`[get]`
bool | CanSkipTurn`[get, set]`
bool | CanDoEvents`[get, set]`
HashSet< GraphElement > | WaitingForEvents`[get]`
Properties inherited from Machinations.FromFlash.graph.Graph
List< GraphElement > | Elements`[get, set]`
List< IUserComponentSchema > | UserComponents`[get, set]`
Properties inherited from Machinations.FromFlash.graph.IGraph
List< GraphElement > | Elements`[get, set]`
List< IUserComponentSchema > | UserComponents`[get, set]`

## Events

Action | SizeChanged
Action | StepChanged
Action | TurnFinished
Action | CardsChange
Action | EndChanged
Action | GraphLoaded
PropertyChangedEventHandler | PropertyChanged
Events inherited from Machinations.FromFlash.graph.Graph
EventHandler | Changed

## Additional Inherited Members

Protected Attributes inherited from Machinations.FromFlash.graph.Graph
List< GraphElement > | m_elements

## Detailed Description

Subclass of Graph, holds Machinations elements and controls the simulation

## Constructor & Destructor Documentation

## ◆ MachinationsGraph()

Machinations.FromFlash.machinations.model.MachinationsGraph.MachinationsGraph | ( |  | ) |

## Member Function Documentation

## ◆ Clear()

override void Machinations.FromFlash.machinations.model.MachinationsGraph.Clear | ( |  | ) |

virtual

Reimplemented from Machinations.FromFlash.graph.Graph.

## ◆ End()

void Machinations.FromFlash.machinations.model.MachinationsGraph.End | ( | string | condition | ) |

## ◆ FindAllNodesByCaption()

List<MachinationsNode> Machinations.FromFlash.machinations.model.MachinationsGraph.FindAllNodesByCaption | ( | string | caption | ) |

## ◆ FindAllNodesByCaptionAndColor()

List<MachinationsNode> Machinations.FromFlash.machinations.model.MachinationsGraph.FindAllNodesByCaptionAndColor | ( | string | caption,
|  | Color | color
| ) |  |

## ◆ FindNodeByCaption()

MachinationsNode Machinations.FromFlash.machinations.model.MachinationsGraph.FindNodeByCaption | ( | string | caption | ) |

## ◆ FindNodeByCaptionAndColor()

MachinationsNode Machinations.FromFlash.machinations.model.MachinationsGraph.FindNodeByCaptionAndColor | ( | string | caption,
|  | Color | color
| ) |  |

## ◆ FinishTurn()

void Machinations.FromFlash.machinations.model.MachinationsGraph.FinishTurn | ( |  | ) |

## ◆ GenerateXml()

override XmlDocument Machinations.FromFlash.machinations.model.MachinationsGraph.GenerateXml | ( |  | ) |

virtual

Generate a XML object that represents the graph

Returns
  an XML object representing the graph

Reimplemented from Machinations.FromFlash.graph.Graph.

## ◆ GetDiceValue()

double Machinations.FromFlash.machinations.model.MachinationsGraph.GetDiceValue | ( |  | ) |

## ◆ GetMultiplayerValue()

double Machinations.FromFlash.machinations.model.MachinationsGraph.GetMultiplayerValue | ( |  | ) |

## ◆ GetSkillValue()

double Machinations.FromFlash.machinations.model.MachinationsGraph.GetSkillValue | ( |  | ) |

## ◆ GetStrategyValue()

double Machinations.FromFlash.machinations.model.MachinationsGraph.GetStrategyValue | ( |  | ) |

## ◆ LoadGraphSettings()

void Machinations.FromFlash.machinations.model.MachinationsGraph.LoadGraphSettings | ( | XmlElement | graphElement | ) |

## ◆ MoreTurns()

void Machinations.FromFlash.machinations.model.MachinationsGraph.MoreTurns | ( | int | count | ) |

## ◆ OneTurn()

void Machinations.FromFlash.machinations.model.MachinationsGraph.OneTurn | ( |  | ) |

## ◆ OneTurnWithoutUserActions()

void Machinations.FromFlash.machinations.model.MachinationsGraph.OneTurnWithoutUserActions | ( |  | ) |

## ◆ OnPropertyChanged()

virtual void Machinations.FromFlash.machinations.model.MachinationsGraph.OnPropertyChanged | ( | [CallerMemberName] string | propertyName = `null` | ) |

protected virtual

## ◆ Prepare()

void Machinations.FromFlash.machinations.model.MachinationsGraph.Prepare | ( |  | ) |

## ◆ PushToTop()

void Machinations.FromFlash.machinations.model.MachinationsGraph.PushToTop | ( | GraphElement | element | ) |

## ◆ RemoveElement()

override void Machinations.FromFlash.machinations.model.MachinationsGraph.RemoveElement | ( | GraphElement | element | ) |

virtual

Removes an element from a graph, do not call this function directly call element.dispose() instead

Parameters

  element |

Reimplemented from Machinations.FromFlash.graph.Graph.

## ◆ Update()

void Machinations.FromFlash.machinations.model.MachinationsGraph.Update | ( | double | time,
|  | bool | DoEvents
| ) |  |

## Member Data Documentation

## ◆ ActionsPerTurn

int Machinations.FromFlash.machinations.model.MachinationsGraph.ActionsPerTurn

## ◆ ActionsThisTurn

int Machinations.FromFlash.machinations.model.MachinationsGraph.ActionsThisTurn

## ◆ Author

string Machinations.FromFlash.machinations.model.MachinationsGraph.Author

## ◆ ColorCoding

bool Machinations.FromFlash.machinations.model.MachinationsGraph.ColorCoding

## ◆ Dice

string Machinations.FromFlash.machinations.model.MachinationsGraph.Dice

## ◆ DistributionMode

DistributionMode Machinations.FromFlash.machinations.model.MachinationsGraph.DistributionMode

## ◆ DoEvents

bool Machinations.FromFlash.machinations.model.MachinationsGraph.DoEvents

## ◆ EndCondition

string Machinations.FromFlash.machinations.model.MachinationsGraph.EndCondition

## ◆ FireInterval

double Machinations.FromFlash.machinations.model.MachinationsGraph.FireInterval

## ◆ Multiplayer

string Machinations.FromFlash.machinations.model.MachinationsGraph.Multiplayer

## ◆ Name

string Machinations.FromFlash.machinations.model.MachinationsGraph.Name

## ◆ OriginalActionsPerTurn

int Machinations.FromFlash.machinations.model.MachinationsGraph.OriginalActionsPerTurn

## ◆ ResourceSpeed

double Machinations.FromFlash.machinations.model.MachinationsGraph.ResourceSpeed

## ◆ Skill

string Machinations.FromFlash.machinations.model.MachinationsGraph.Skill

## ◆ Strategy

string Machinations.FromFlash.machinations.model.MachinationsGraph.Strategy

## ◆ TimeMode

TimeMode Machinations.FromFlash.machinations.model.MachinationsGraph.TimeMode

## Property Documentation

## ◆ CanDoEvents

bool Machinations.FromFlash.machinations.model.MachinationsGraph.CanDoEvents

get set

## ◆ CanSkipTurn

bool Machinations.FromFlash.machinations.model.MachinationsGraph.CanSkipTurn

get set

## ◆ ClickableNodes

List<MachinationsNode> Machinations.FromFlash.machinations.model.MachinationsGraph.ClickableNodes

get

## ◆ Ended

bool Machinations.FromFlash.machinations.model.MachinationsGraph.Ended

get set

## ◆ Height

int Machinations.FromFlash.machinations.model.MachinationsGraph.Height

get set

## ◆ InhibitionChange

bool Machinations.FromFlash.machinations.model.MachinationsGraph.InhibitionChange

get set

## ◆ Log

ILog Machinations.FromFlash.machinations.model.MachinationsGraph.Log

get set

## ◆ Running

bool Machinations.FromFlash.machinations.model.MachinationsGraph.Running

get set

## ◆ Step

int Machinations.FromFlash.machinations.model.MachinationsGraph.Step

get set

## ◆ TurnPools

ObservableCollection<Pool> Machinations.FromFlash.machinations.model.MachinationsGraph.TurnPools

get

## ◆ WaitingForEvents

HashSet<GraphElement> Machinations.FromFlash.machinations.model.MachinationsGraph.WaitingForEvents

get

## ◆ Width

int Machinations.FromFlash.machinations.model.MachinationsGraph.Width

get set

## Event Documentation

## ◆ CardsChange

Action Machinations.FromFlash.machinations.model.MachinationsGraph.CardsChange

## ◆ EndChanged

Action Machinations.FromFlash.machinations.model.MachinationsGraph.EndChanged

## ◆ GraphLoaded

Action Machinations.FromFlash.machinations.model.MachinationsGraph.GraphLoaded

## ◆ PropertyChanged

PropertyChangedEventHandler Machinations.FromFlash.machinations.model.MachinationsGraph.PropertyChanged

## ◆ SizeChanged

Action Machinations.FromFlash.machinations.model.MachinationsGraph.SizeChanged

## ◆ StepChanged

Action Machinations.FromFlash.machinations.model.MachinationsGraph.StepChanged

## ◆ TurnFinished

Action Machinations.FromFlash.machinations.model.MachinationsGraph.TurnFinished

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

- FromFlash/machinations/model/MachinationsGraph.cs