Gorilla.UI.SkillSystem
Unit Gorilla.UI.SkillSystem.pasClasses
- TSkillSystemItemPattern = class ( TFlowChartItemPattern )
- TSkillSystemPattern = class ( TSkillSystemItemPattern )
- TSkillSystemGroupPattern = class ( TSkillSystemItemPattern )
- TSkillSystemSkillPattern = class ( TSkillSystemItemPattern )
- TSkillSystemFrame = class ( TPanel )
TSkillSystemItemPattern
Custom item pattern component for skillsystem, group and skill flowchart pattern templates.
Ancestors
Members
Methods
- public constructor Create ( AOwner : TComponent ) ;
- protected procedure DoOnAttached ( ASender : TFlowChartPattern; const ASource : TFlowChartPattern ) ;
- protected procedure DoOnUnattached ( ASender : TFlowChartPattern; const ASource : TFlowChartPattern ) ;
- protected procedure DoOnCanUnlink ( ASource : TFlowChartPattern; ADest : TFlowChartPattern; var AAllowed : Boolean ) ;
- public function GetSkillSystemFrame ( ) : TSkillSystemFrame ;
- public function GetSkillSystem ( ) : TGorillaSkillSystem ;
TSkillSystemPattern
TSkillSystemGroupPattern
TSkillSystemSkillPattern
TSkillSystemFrame
Ancestors
Members
Fields
- protected FSkillSystem :
TGorillaSkillSystem
- protected FFlowChart :
TFlowChartFrame
- protected FEditor :
TFlowChartEditorFrame
- protected FManager :
TFlowChartManagerFrame
- protected FSplitter :
TSplitter
- protected FScrollBox :
TVertScrollBox
- protected FTemplates :
TEntityTemplates
- protected FTranslate :
TGorillaSkillTranslationFrame
- protected FChainLater :
TLaterBindingMap
Methods
- public constructor Create ( AOwner : TComponent ) ;
- public destructor Destroy ( ) ;
- protected procedure SetSkillSystem
(
const
Value :
TGorillaSkillSystem
)
;
virtual;
Sets the internal skill system field. The method will automatically clear the flow chart and build all necessary patterns from the given skill system component.
- protected procedure DoOnEditEntity
(
const
AItem :
TObject; const
AUIElement :
TFlowChartPattern
)
;
Is the callback method when an entity or the skill system opened for editing.
- protected procedure DoOnApplyEditor
(
const
AItem :
TObject; const
AUIElement :
TFlowChartPattern
)
;
Is the callback method when an entity or the skill system was edited by the editor frame of the flow chart component.
- protected procedure DoOnSystemCreate
(
ATemplate :
TFlowChartPattern; const
AParent :
TFlowChartPattern; var
AAllowed :
Boolean; var
AInstance :
TObject
)
;
Callback method to verify if it's allowed to build a new skill system pattern in the flow chart component.
- protected procedure DoOnGroupCreate
(
ATemplate :
TFlowChartPattern; const
AParent :
TFlowChartPattern; var
AAllowed :
Boolean; var
AInstance :
TObject
)
;
Callback method to verify if it's allowed to build a new group pattern in the flow chart component.
- protected procedure DoOnSkillCreate
(
ATemplate :
TFlowChartPattern; const
AParent :
TFlowChartPattern; var
AAllowed :
Boolean; var
AInstance :
TObject
)
;
Callback method to verify if it's allowed to build a new skill pattern in the flow chart component.
- protected procedure DoOnSystemBuilt
(
ASender :
TFlowChartPattern; const
ASource :
TFlowChartPattern
)
;
Callback method when a new skill system pattern was built in the flow chart component.
- protected procedure DoOnGroupBuilt
(
ASender :
TFlowChartPattern; const
ASource :
TFlowChartPattern
)
;
Callback method when a new skill system group pattern was built in the flow chart component.
- protected procedure DoOnSkillBuilt
(
ASender :
TFlowChartPattern; const
ASource :
TFlowChartPattern
)
;
Callback method when a new skill pattern was built in the flow chart component.
- protected procedure UpdateSystemPattern
(
const
APattern :
TSkillSystemPattern; const
AInstance :
TGorillaSkillSystem
)
;
Helper method to put all information from the logical skill system component inside the pattern.
- protected procedure UpdateGroupPattern
(
const
APattern :
TSkillSystemGroupPattern; const
AInstance :
TGorillaSkillGroup
)
;
Helper method to put all information from the logical skill system group inside the pattern.
- protected procedure UpdateSkillPattern
(
const
APattern :
TSkillSystemSkillPattern; const
AInstance :
TGorillaSkill
)
;
Helper method to put all information from the logical skill object inside the pattern.
- protected procedure DoOnFlowChartPatternMoved
(
ASender :
TFlowChartPattern
)
;
Callback method when a specific flow chart pattern was moved. The procedure will update the skill system entity position.
- protected function CreateNewSkillSystem
(
)
: TGorillaSkillSystem
;
virtual;
Creates a new and empty SkillSystem inside of this frame. The method will automatically set the SkillSystem property and returns the newly created instance.
- protected procedure LoadSkillSystem
(
const
ASkillSystem :
TGorillaSkillSystem
)
;
virtual;
Applies an existing skill system to the frame and creates all necessary patterns to the flowchart. The method will automatically update the flowchart, manager and editor frame.
- protected procedure LoadSkillGroup
(
const
AParent :
TSkillSystemPattern; const
AGroup :
TGorillaSkillGroup
)
;
virtual;
Creates a group pattern and child skill patterns.
- protected procedure LoadSkill
(
const
AParent :
TSkillSystemItemPattern; const
ASkill :
TGorillaSkill
)
;
virtual;
Creates a skill pattern and links a eventually chained skill pattern.
- public procedure ClearSkillSystem
(
)
;
virtual;
Destroys the current skill system and clears all visual components.
- public procedure LoadSkillSystemFromFile
(
const
AFilename :
string
)
;
virtual;
Creates and loads a new skill system from file. Afterwards it will be applied to the skill system frame by the LoadSkillSystem() method.
- public procedure LoadSkillSystemFromStream
(
const
AStream :
TStream
)
;
virtual;
Creates and loads a new skill system from stream. Afterwards it will be applied to the skill system frame by the LoadSkillSystem() method.
Properties
- public SkillSystem : TGorillaSkillSystem
Linked SkillSystem instance. If the property is set, it will automatically clear the flow chart build the current skill system with all patterns.
read FSkillSystem
write SetSkillSystem - published FlowChart : TFlowChartFrame
Integrated flow chart frame. In the flow chart the skill system hierarchy is visualized with groups and skill chains.
read FFlowChart - published Editor : TFlowChartEditorFrame
Integrated flow chart editor frame. By this editor it is possible to edit skill system properties on the fly.
read FEditor - published Manager : TFlowChartManagerFrame
Integrated flow chart manager frame. This contains the editor frame and a treeview overview of the skill system hierarchy.
read FManager