├── .gitignore
├── BlankPlugin
├── BlankPlugin.cs
├── BlankPlugin.csproj
├── BlankPlugin.csproj.vspscc
├── Nodes
│ └── ActionBlankNode.cs
└── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ └── Resources.resx
├── Brainiac Designer Base
├── AIDefinition.cs
├── Attributes
│ ├── DesignerBoolean.cs
│ ├── DesignerBooleanEditor.Designer.cs
│ ├── DesignerBooleanEditor.cs
│ ├── DesignerBooleanEditor.resx
│ ├── DesignerEnum.cs
│ ├── DesignerEnumEditor.Designer.cs
│ ├── DesignerEnumEditor.cs
│ ├── DesignerEnumEditor.resx
│ ├── DesignerFloat.cs
│ ├── DesignerInteger.cs
│ ├── DesignerNumberEditor.Designer.cs
│ ├── DesignerNumberEditor.cs
│ ├── DesignerNumberEditor.resx
│ ├── DesignerProperty.cs
│ ├── DesignerPropertyEditor.Designer.cs
│ ├── DesignerPropertyEditor.cs
│ ├── DesignerPropertyEditor.resx
│ ├── DesignerString.cs
│ ├── DesignerStringEditor.Designer.cs
│ ├── DesignerStringEditor.cs
│ └── DesignerStringEditor.resx
├── BehaviorManager.cs
├── Brainiac Designer Base.csproj
├── Brainiac Designer Base.csproj.vspscc
├── Debug.cs
├── Events
│ └── Event.cs
├── Exporters
│ ├── Exporter.cs
│ ├── ExporterCs.cs
│ └── ExporterCsUseParameters.cs
├── ExtendedGraphics.cs
├── FileManagers
│ ├── FileManager.cs
│ └── FileManagerXML.cs
├── FlexibleProperties
│ ├── DesignerAIDefinitionEditor.Designer.cs
│ ├── DesignerAIDefinitionEditor.cs
│ ├── DesignerAIDefinitionEditor.resx
│ ├── DesignerAIDefinitionNumberEditor.Designer.cs
│ ├── DesignerAIDefinitionNumberEditor.cs
│ ├── DesignerAIDefinitionNumberEditor.resx
│ ├── DesignerFlexible.cs
│ ├── DesignerFlexibleBoolean.cs
│ ├── DesignerFlexibleEnum.cs
│ ├── DesignerFlexibleFloat.cs
│ ├── DesignerFlexibleInteger.cs
│ ├── DesignerRandomNumberEditor.Designer.cs
│ ├── DesignerRandomNumberEditor.cs
│ ├── DesignerRandomNumberEditor.resx
│ ├── FlexibleProperty.cs
│ ├── FlexiblePropertyBoolean.cs
│ ├── FlexiblePropertyEnum.cs
│ ├── FlexiblePropertyFloat.cs
│ └── FlexiblePropertyInteger.cs
├── NodeViewData.cs
├── NodeViewDataReferencedBehavior.cs
├── Nodes
│ ├── Action.cs
│ ├── Behavior.cs
│ ├── Condition.cs
│ ├── ConditionConnectors.cs
│ ├── Decorator.cs
│ ├── Impulse.cs
│ ├── Node.Comment.cs
│ ├── Node.ConnectedChildren.cs
│ ├── Node.Connector.cs
│ ├── Node.ConnectorMultiple.cs
│ ├── Node.ConnectorSingle.cs
│ ├── Node.ErrorCheck.cs
│ ├── Node.Style.cs
│ ├── Node.SubItem.cs
│ ├── Node.SubItemConnector.cs
│ ├── Node.SubItemEvent.cs
│ ├── Node.SubItemProperty.cs
│ ├── Node.SubItemText.cs
│ ├── Node.cs
│ ├── Parallel.cs
│ ├── ReferencedBehavior.cs
│ ├── Selector.cs
│ ├── Sequence.cs
│ └── StyledNode.cs
├── Plugin.cs
├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ └── Resources.resx
└── app.config
├── Brainiac Designer Setup
├── Brainiac Designer Setup.vdproj
└── Brainiac Designer Setup.vdproj.vspscc
├── Brainiac Designer.sln
├── Brainiac Designer.vssscc
├── Brainiac Designer
├── AboutBox.Designer.cs
├── AboutBox.cs
├── AboutBox.resx
├── BehaviorTreeList.cs
├── BehaviorTreeList.designer.cs
├── BehaviorTreeList.resx
├── BehaviorTreeListDock.Designer.cs
├── BehaviorTreeListDock.cs
├── BehaviorTreeListDock.resx
├── BehaviorTreeView.cs
├── BehaviorTreeView.designer.cs
├── BehaviorTreeView.resx
├── BehaviorTreeViewDock.Designer.cs
├── BehaviorTreeViewDock.cs
├── BehaviorTreeViewDock.resx
├── Brainiac Designer.csproj
├── Brainiac Designer.csproj.vspscc
├── DynamicPropertyGrid.cs
├── DynamicPropertyGrid.designer.cs
├── DynamicPropertyGrid.resx
├── EditWorkspaceDialog.Designer.cs
├── EditWorkspaceDialog.cs
├── EditWorkspaceDialog.resx
├── ErrorCheckDialog.Designer.cs
├── ErrorCheckDialog.cs
├── ErrorCheckDialog.resx
├── ExportDialog.Designer.cs
├── ExportDialog.cs
├── ExportDialog.resx
├── MainWindow.Designer.cs
├── MainWindow.cs
├── MainWindow.resx
├── MainWindowCloseDialog.Designer.cs
├── MainWindowCloseDialog.cs
├── MainWindowCloseDialog.resx
├── NodeLayoutManager.cs
├── Program.cs
├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
├── PropertiesDock.Designer.cs
├── PropertiesDock.cs
├── PropertiesDock.resx
├── Resources
│ └── brain_logo_clean.png
├── SettingsDialog.Designer.cs
├── SettingsDialog.cs
├── SettingsDialog.resx
├── Workspace.cs
├── WorkspaceDialog.Designer.cs
├── WorkspaceDialog.cs
├── WorkspaceDialog.resx
├── app.config
└── icon.ico
├── Brainiac Exporter
├── Brainiac Exporter.csproj
├── Brainiac Exporter.csproj.vspscc
├── Program.cs
├── Properties
│ └── AssemblyInfo.cs
├── app.config
└── icon.ico
├── Brainiac Tests
├── Brainiac Tests.csproj
├── Brainiac Tests.csproj.vspscc
├── Nodes
│ ├── MultipleChildren.cs
│ └── SingleChild.cs
├── Properties
│ └── AssemblyInfo.cs
├── TestDebug.cs
└── TestExtractNode.cs
├── Design Mode
├── Design Mode.csproj
├── Design Mode.csproj.vspscc
├── DesignMode.cs
├── Events
│ └── EventDesign.cs
├── Nodes
│ ├── ActionDesign.cs
│ ├── CompositeDesign.cs
│ ├── ConditionDesign.cs
│ ├── DecoratorDesign.cs
│ └── ImpulseDesign.cs
├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ └── Resources.resx
└── app.config
├── External
└── DockPanel
│ ├── DockSample
│ ├── AboutDialog.Designer.cs
│ ├── AboutDialog.cs
│ ├── AboutDialog.resx
│ ├── Customization
│ │ ├── DockHelper.cs
│ │ ├── Extender.cs
│ │ ├── InertButton.cs
│ │ ├── Resources.Designer.cs
│ │ ├── Resources.resx
│ │ ├── Resources
│ │ │ ├── DockIndicator_PaneDiamond.bmp
│ │ │ ├── DockIndicator_PaneDiamond_Bottom.bmp
│ │ │ ├── DockIndicator_PaneDiamond_Hotspot.bmp
│ │ │ ├── DockIndicator_PaneDiamond_HotspotIndex.bmp
│ │ │ ├── DockIndicator_PaneDiamond_Left.bmp
│ │ │ ├── DockIndicator_PaneDiamond_Right.bmp
│ │ │ ├── DockIndicator_PaneDiamond_Top.bmp
│ │ │ ├── DockIndicator_PanelBottom.bmp
│ │ │ ├── DockIndicator_PanelBottom_Active.bmp
│ │ │ ├── DockIndicator_PanelFill.bmp
│ │ │ ├── DockIndicator_PanelFill_Active.bmp
│ │ │ ├── DockIndicator_PanelLeft.bmp
│ │ │ ├── DockIndicator_PanelLeft_Active.bmp
│ │ │ ├── DockIndicator_PanelRight.bmp
│ │ │ ├── DockIndicator_PanelRight_Active.bmp
│ │ │ ├── DockIndicator_PanelTop.bmp
│ │ │ ├── DockIndicator_PanelTop_Active.bmp
│ │ │ ├── DockPaneCaption_AutoHideNo.bmp
│ │ │ ├── DockPaneCaption_AutoHideYes.bmp
│ │ │ ├── DockPaneCaption_CloseDisabled.bmp
│ │ │ ├── DockPaneCaption_CloseEnabled.bmp
│ │ │ ├── DockPaneStrip_CloseDisabled.bmp
│ │ │ ├── DockPaneStrip_CloseEnabled.bmp
│ │ │ ├── DockPaneStrip_ScrollLeftDisabled.bmp
│ │ │ ├── DockPaneStrip_ScrollLeftEnabled.bmp
│ │ │ ├── DockPaneStrip_ScrollRightDisabled.bmp
│ │ │ ├── DockPaneStrip_ScrollRightEnabled.bmp
│ │ │ └── Dockindicator_PaneDiamond_Fill.bmp
│ │ ├── Strings.Designer.cs
│ │ ├── Strings.resx
│ │ ├── VS2003AutoHideStrip.cs
│ │ ├── VS2003DockPaneCaption.cs
│ │ └── VS2003DockPaneStrip.cs
│ ├── DockSample.csproj
│ ├── DummyDoc.Designer.cs
│ ├── DummyDoc.cs
│ ├── DummyDoc.resx
│ ├── DummyOutputWindow.Designer.cs
│ ├── DummyOutputWindow.cs
│ ├── DummyOutputWindow.resx
│ ├── DummyPropertyWindow.Designer.cs
│ ├── DummyPropertyWindow.cs
│ ├── DummyPropertyWindow.resx
│ ├── DummySolutionExplorer.Designer.cs
│ ├── DummySolutionExplorer.cs
│ ├── DummySolutionExplorer.resx
│ ├── DummyTaskList.Designer.cs
│ ├── DummyTaskList.cs
│ ├── DummyTaskList.resx
│ ├── DummyToolbox.Designer.cs
│ ├── DummyToolbox.cs
│ ├── DummyToolbox.resx
│ ├── Images
│ │ ├── ArrowDown.bmp
│ │ ├── ArrowUp.bmp
│ │ ├── Bitmap.ico
│ │ ├── BlankIcon.ico
│ │ ├── CSFile.ico
│ │ ├── CSProject.ico
│ │ ├── ClosedFolder.ICO
│ │ ├── File.ico
│ │ ├── Form.ico
│ │ ├── Mouse.bmp
│ │ ├── New.ico
│ │ ├── Open.ico
│ │ ├── OpenFolder.ICO
│ │ ├── OutputWindow.ico
│ │ ├── PropertyWindow.ico
│ │ ├── Reference.ico
│ │ ├── References.ico
│ │ ├── SolutionExplorer.ico
│ │ ├── TaskListWindow.ico
│ │ ├── ToolboxWindow.ico
│ │ ├── XmlFile.ico
│ │ └── msenv22.ico
│ ├── MainForm.Designer.cs
│ ├── MainForm.cs
│ ├── MainForm.resx
│ ├── MainForm2.Designer.cs
│ ├── MainForm2.cs
│ ├── MainForm2.resx
│ ├── Program.cs
│ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ ├── Resources.resx
│ │ ├── Settings.Designer.cs
│ │ └── Settings.settings
│ ├── Resources
│ │ └── DockPanel.xml
│ ├── ToolWindow.Designer.cs
│ ├── ToolWindow.cs
│ ├── ToolWindow.resx
│ └── license.txt
│ ├── WinFormsUI.Docking.sln
│ ├── WinFormsUI
│ ├── Docking
│ │ ├── AutoHideStripBase.cs
│ │ ├── DockAreasEditor.cs
│ │ ├── DockContent.cs
│ │ ├── DockContentCollection.cs
│ │ ├── DockContentEventArgs.cs
│ │ ├── DockContentHandler.cs
│ │ ├── DockOutlineBase.cs
│ │ ├── DockPane.SplitterControl.cs
│ │ ├── DockPane.cs
│ │ ├── DockPaneCaptionBase.cs
│ │ ├── DockPaneCollection.cs
│ │ ├── DockPaneStripBase.cs
│ │ ├── DockPanel.AutoHideWindow.cs
│ │ ├── DockPanel.DockDragHandler.cs
│ │ ├── DockPanel.DragHandler.cs
│ │ ├── DockPanel.FocusManager.cs
│ │ ├── DockPanel.MdiClientController.cs
│ │ ├── DockPanel.Persistor.cs
│ │ ├── DockPanel.SplitterDragHandler.cs
│ │ ├── DockPanel.bmp
│ │ ├── DockPanel.cs
│ │ ├── DockPanelExtender.cs
│ │ ├── DockPanelSkin.cs
│ │ ├── DockWindow.SplitterControl.cs
│ │ ├── DockWindow.cs
│ │ ├── DockWindowCollection.cs
│ │ ├── DragForm.cs
│ │ ├── DummyControl.cs
│ │ ├── Enums.cs
│ │ ├── FloatWindow.cs
│ │ ├── FloatWindowCollection.cs
│ │ ├── Helpers
│ │ │ ├── DockHelper.cs
│ │ │ ├── DrawHelper.cs
│ │ │ ├── ResourceHelper.cs
│ │ │ └── Win32Helper.cs
│ │ ├── InertButtonBase.cs
│ │ ├── Interfaces.cs
│ │ ├── Localization.cs
│ │ ├── Measures.cs
│ │ ├── NestedDockingStatus.cs
│ │ ├── NestedPaneCollection.cs
│ │ ├── Resources.Designer.cs
│ │ ├── Resources.resx
│ │ ├── Resources
│ │ │ ├── DockIndicator_PaneDiamond.bmp
│ │ │ ├── DockIndicator_PaneDiamond_Bottom.bmp
│ │ │ ├── DockIndicator_PaneDiamond_Hotspot.bmp
│ │ │ ├── DockIndicator_PaneDiamond_HotspotIndex.bmp
│ │ │ ├── DockIndicator_PaneDiamond_Left.bmp
│ │ │ ├── DockIndicator_PaneDiamond_Right.bmp
│ │ │ ├── DockIndicator_PaneDiamond_Top.bmp
│ │ │ ├── DockIndicator_PanelBottom.bmp
│ │ │ ├── DockIndicator_PanelBottom_Active.bmp
│ │ │ ├── DockIndicator_PanelFill.bmp
│ │ │ ├── DockIndicator_PanelFill_Active.bmp
│ │ │ ├── DockIndicator_PanelLeft.bmp
│ │ │ ├── DockIndicator_PanelLeft_Active.bmp
│ │ │ ├── DockIndicator_PanelRight.bmp
│ │ │ ├── DockIndicator_PanelRight_Active.bmp
│ │ │ ├── DockIndicator_PanelTop.bmp
│ │ │ ├── DockIndicator_PanelTop_Active.bmp
│ │ │ ├── DockPane_AutoHide.bmp
│ │ │ ├── DockPane_Close.bmp
│ │ │ ├── DockPane_Dock.bmp
│ │ │ ├── DockPane_Option.bmp
│ │ │ ├── DockPane_OptionOverflow.bmp
│ │ │ └── Dockindicator_PaneDiamond_Fill.bmp
│ │ ├── SplitterBase.cs
│ │ ├── Strings.Designer.cs
│ │ ├── Strings.resx
│ │ ├── VS2005AutoHideStrip.cs
│ │ ├── VS2005DockPaneCaption.cs
│ │ ├── VS2005DockPaneStrip.cs
│ │ ├── VisibleNestedPaneCollection.cs
│ │ └── Win32
│ │ │ ├── Enums.cs
│ │ │ └── NativeMethods.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── WinFormsUI.csproj
│ ├── WinFormsUI.csproj.vspscc
│ └── license.txt
│ └── license.txt
├── Project Hoshimi Design
├── Enums.cs
├── Events
│ ├── FocusDestroyed.cs
│ ├── UnitBuilt.cs
│ └── UnitDestroyed.cs
├── Nodes
│ ├── ActionBuild.cs
│ ├── ActionFocusClosest.cs
│ ├── ActionFollowFocus.cs
│ ├── ActionInheritFocus.cs
│ ├── ActionMoveTillFocusIsInRange.cs
│ ├── ActionTransferOxygenFromFocus.cs
│ ├── ActionTransferOxygenToFocus.cs
│ ├── ConditionCargoIsFull.cs
│ ├── ConditionFocusIs.cs
│ ├── ConditionHasLessThan.cs
│ ├── ConditionHasNeedleWithLessServantsThan.cs
│ ├── DecoratorLoop.cs
│ ├── DecoratorNot.cs
│ ├── DecoratorTrue.cs
│ ├── Impulse.cs
│ ├── SelectorLinear.cs
│ └── SequenceLinear.cs
├── Project Hoshimi Design.csproj
├── Project Hoshimi Design.csproj.vspscc
├── ProjectHoshimi.cs
├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ └── Resources.resx
├── Resources
│ └── Build Needle.xml
└── app.config
├── README.md
├── Vampire
├── Actions
│ ├── Attack.cs
│ ├── ChooseFarthestSkill.cs
│ ├── ChooseRandomSkill.cs
│ ├── ChooseTargetInView.cs
│ ├── ChooseTargetWhoAttack.cs
│ ├── EndFight.cs
│ └── MoveToAttackRange.cs
├── Composites
│ ├── Parallel.cs
│ ├── Selector.cs
│ └── Sequence.cs
├── Conditions
│ ├── HasRoleInView.cs
│ ├── HasTarget.cs
│ └── IsAttacked.cs
├── Decorators
│ ├── Loop.cs
│ ├── Not.cs
│ └── Successful.cs
├── Enums.cs
├── Events
│ ├── FocusDestroyed.cs
│ ├── UnitBuilt.cs
│ └── UnitDestroyed.cs
├── Impulses
│ └── Impulse.cs
├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ └── Resources.resx
├── Resources
│ └── Build Needle.xml
├── Vampire.cs
├── Vampire.csproj
└── app.config
├── license.txt
└── out
├── behaviors
├── Blank Plugin
│ └── Blank Behavior.xml
└── Project Hoshimi
│ ├── Bot AI
│ ├── Bot AI.xml
│ ├── Build Needle.xml
│ └── Build Transporter.xml
│ └── Bot Transporter
│ ├── Bot Transporter.xml
│ ├── Collect Oxygen.xml
│ ├── Move To Next Available Needle.xml
│ └── Supply Needle.xml
├── debug_workspaces.xml
├── license.txt
├── license_dockpanel.txt
└── workspaces.xml
/.gitignore:
--------------------------------------------------------------------------------
1 | # Build Folders (you can keep bin if you'd like, to store dlls and pdbs)
2 | [Bb]in/
3 | [Oo]bj/
4 |
5 | # mstest test results
6 | TestResults
7 |
8 | ## Ignore Visual Studio temporary files, build results, and
9 | ## files generated by popular Visual Studio add-ons.
10 |
11 | # User-specific files
12 | *.suo
13 | *.user
14 | *.sln.docstates
15 |
16 | # Build results
17 | [Dd]ebug/
18 | [Rr]elease/
19 | x64/
20 | *_i.c
21 | *_p.c
22 | *.ilk
23 | *.meta
24 | *.obj
25 | *.pch
26 | *.pdb
27 | *.pgc
28 | *.pgd
29 | *.rsp
30 | *.sbr
31 | *.tlb
32 | *.tli
33 | *.tlh
34 | *.tmp
35 | *.log
36 | *.vspscc
37 | *.vssscc
38 | .builds
39 |
40 | # Visual C++ cache files
41 | ipch/
42 | *.aps
43 | *.ncb
44 | *.opensdf
45 | *.sdf
46 |
47 | # Visual Studio profiler
48 | *.psess
49 | *.vsp
50 | *.vspx
51 |
52 | # Guidance Automation Toolkit
53 | *.gpState
54 |
55 | # ReSharper is a .NET coding add-in
56 | _ReSharper*
57 |
58 | # NCrunch
59 | *.ncrunch*
60 | .*crunch*.local.xml
61 |
62 | # Installshield output folder
63 | [Ee]xpress
64 |
65 | # DocProject is a documentation generator add-in
66 | DocProject/buildhelp/
67 | DocProject/Help/*.HxT
68 | DocProject/Help/*.HxC
69 | DocProject/Help/*.hhc
70 | DocProject/Help/*.hhk
71 | DocProject/Help/*.hhp
72 | DocProject/Help/Html2
73 | DocProject/Help/html
74 |
75 | # Click-Once directory
76 | publish
77 |
78 | # Publish Web Output
79 | *.Publish.xml
80 |
81 | # NuGet Packages Directory
82 | packages
83 |
84 | # Windows Azure Build Output
85 | csx
86 | *.build.csdef
87 |
88 | # Windows Store app package directory
89 | AppPackages/
90 |
91 | # Others
92 | [Bb]in
93 | [Oo]bj
94 | sql
95 | TestResults
96 | [Tt]est[Rr]esult*
97 | *.Cache
98 | ClientBin
99 | [Ss]tyle[Cc]op.*
100 | ~$*
101 | *.dbmdl
102 | Generated_Code #added for RIA/Silverlight projects
103 |
104 | # Backup & report files from converting an old project file to a newer
105 | # Visual Studio version. Backup files are not needed, because we have git ;-)
106 | _UpgradeReport_Files/
107 | Backup*/
108 | UpgradeLog*.XML
109 |
--------------------------------------------------------------------------------
/BlankPlugin/BlankPlugin.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 | using Brainiac.Design;
5 | using BlankPlugin.Properties;
6 |
7 | namespace BlankPlugin
8 | {
9 | public class BlankPlugin : Plugin
10 | {
11 | public BlankPlugin()
12 | {
13 | AddResourceManager(Resources.ResourceManager);
14 |
15 | _fileManagers.Add( new FileManagerInfo(typeof(Brainiac.Design.FileManagers.FileManagerXML), "Behavior XML (*.xml)|*.xml", ".xml") );
16 |
17 | _exporters.Add( new ExporterInfo(typeof(Brainiac.Design.Exporters.ExporterCs), "C# Behavior Exporter (Assign Properties)", true, "C#Properties") );
18 | _exporters.Add( new ExporterInfo(typeof(Brainiac.Design.Exporters.ExporterCsUseParameters), "C# Behavior Exporter (Use Parameters)", true, "C#Parameters") );
19 |
20 | NodeGroup actions= new NodeGroup(Resources.NodeGroupActions, NodeIcon.Action, null);
21 | _nodeGroups.Add(actions);
22 |
23 | actions.Items.Add(typeof(Nodes.ActionBlankNode));
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/BlankPlugin/BlankPlugin.csproj.vspscc:
--------------------------------------------------------------------------------
1 | ""
2 | {
3 | "FILE_VERSION" = "9237"
4 | "ENLISTMENT_CHOICE" = "NEVER"
5 | "PROJECT_FILE_RELATIVE_PATH" = ""
6 | "NUMBER_OF_EXCLUDED_FILES" = "0"
7 | "ORIGINAL_PROJECT_FILE_PATH" = ""
8 | "NUMBER_OF_NESTED_PROJECTS" = "0"
9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER"
10 | }
11 |
--------------------------------------------------------------------------------
/BlankPlugin/Nodes/ActionBlankNode.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 | using Brainiac.Design;
5 | using Brainiac.Design.Attributes;
6 | using BlankPlugin.Properties;
7 |
8 | namespace BlankPlugin.Nodes
9 | {
10 | public class ActionBlankNode : Brainiac.Design.Nodes.Action
11 | {
12 | protected int _exampleProperty= 5;
13 |
14 | [DesignerInteger("ActionBlankExampleProperty", "ActionBlankExamplePropertyDesc", "CategoryBasic", DesignerProperty.DisplayMode.List, 0, DesignerProperty.DesignerFlags.NoFlags, 1, 10, 1, "UnitsMeters")]
15 | public int ExampleProperty
16 | {
17 | get { return _exampleProperty; }
18 | set { _exampleProperty= value; }
19 | }
20 |
21 | protected override void CloneProperties(Brainiac.Design.Nodes.Node newnode)
22 | {
23 | base.CloneProperties(newnode);
24 |
25 | ActionBlankNode node= (ActionBlankNode)newnode;
26 | node._exampleProperty= _exampleProperty;
27 | }
28 |
29 | public ActionBlankNode() : base(Resources.ActionBlank, Resources.ActionBlankDesc)
30 | {
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/BlankPlugin/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("BlankPlugin")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("BlankPlugin")]
13 | [assembly: AssemblyCopyright("Copyright © Daniel Kollmann 2009")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("b8bc0693-bed9-4395-a480-b0388a06b77b")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Revision and Build Numbers
33 | // by using the '*' as shown below:
34 | [assembly: AssemblyVersion("1.0.0.0")]
35 | [assembly: AssemblyFileVersion("1.0.0.0")]
36 |
--------------------------------------------------------------------------------
/Brainiac Designer Base/Brainiac Designer Base.csproj.vspscc:
--------------------------------------------------------------------------------
1 | ""
2 | {
3 | "FILE_VERSION" = "9237"
4 | "ENLISTMENT_CHOICE" = "NEVER"
5 | "PROJECT_FILE_RELATIVE_PATH" = ""
6 | "NUMBER_OF_EXCLUDED_FILES" = "0"
7 | "ORIGINAL_PROJECT_FILE_PATH" = ""
8 | "NUMBER_OF_NESTED_PROJECTS" = "0"
9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER"
10 | }
11 |
--------------------------------------------------------------------------------
/Brainiac Designer Base/Nodes/Action.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | using System;
29 | using System.Collections.Generic;
30 | using System.Text;
31 | using System.Drawing;
32 |
33 | namespace Brainiac.Design.Nodes
34 | {
35 | ///
36 | /// This node represents an action which can be attached to the behaviour tree.
37 | ///
38 | public class Action : StyledNode
39 | {
40 | private static Brush _theBackgroundBrush= new SolidBrush( Color.FromArgb(49,133,156) );
41 | private static Brush _theDraggedBackgroundBrush= new SolidBrush( Color.FromArgb(41,112,131) );
42 |
43 | public Action(string label, string description) : base(null, _theBackgroundBrush, _theDraggedBackgroundBrush, label, false, description)
44 | {
45 | }
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/Brainiac Designer Base/Nodes/Condition.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | using System;
29 | using System.Collections.Generic;
30 | using System.Text;
31 | using System.Drawing;
32 |
33 | namespace Brainiac.Design.Nodes
34 | {
35 | ///
36 | /// This node represents a condition which can be attached to the behaviour tree.
37 | ///
38 | public class Condition : StyledNode
39 | {
40 | private static Brush _theBackgroundBrushExp= new SolidBrush( Color.FromArgb(189,123,79) );
41 | private static Brush _theDraggedBackgroundBrushExp= new SolidBrush( Color.FromArgb(164,107,69) );
42 |
43 | public Condition(string label, string description) : base(null, _theBackgroundBrushExp, _theDraggedBackgroundBrushExp, label, false, description)
44 | {
45 | }
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/Brainiac Designer Base/Nodes/ConditionConnectors.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | using System;
29 | using System.Collections.Generic;
30 | using System.Text;
31 | using System.Drawing;
32 | using Brainiac.Design.Properties;
33 |
34 | namespace Brainiac.Design.Nodes
35 | {
36 | ///
37 | /// This node represents a condition which can be attached to the behaviour tree.
38 | ///
39 | public class ConditionConnectors : Condition
40 | {
41 | protected ConnectorSingle _isTrue;
42 | protected ConnectorSingle _isFalse;
43 |
44 | public ConditionConnectors(string label, string description) : base(label, description)
45 | {
46 | _isTrue= new ConnectorSingle(_children, Resources.ConditionConnectorsTrue, "ConditionTrue");
47 | _isFalse= new ConnectorSingle(_children, Resources.ConditionConnectorsFalse, "ConditionFalse");
48 | }
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/Brainiac Designer Base/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/Brainiac Designer Setup/Brainiac Designer Setup.vdproj.vspscc:
--------------------------------------------------------------------------------
1 | ""
2 | {
3 | "FILE_VERSION" = "9237"
4 | "ENLISTMENT_CHOICE" = "NEVER"
5 | "PROJECT_FILE_RELATIVE_PATH" = ""
6 | "NUMBER_OF_EXCLUDED_FILES" = "0"
7 | "ORIGINAL_PROJECT_FILE_PATH" = ""
8 | "NUMBER_OF_NESTED_PROJECTS" = "0"
9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER"
10 | }
11 |
--------------------------------------------------------------------------------
/Brainiac Designer.vssscc:
--------------------------------------------------------------------------------
1 | ""
2 | {
3 | "FILE_VERSION" = "9237"
4 | "ENLISTMENT_CHOICE" = "NEVER"
5 | "PROJECT_FILE_RELATIVE_PATH" = ""
6 | "NUMBER_OF_EXCLUDED_FILES" = "0"
7 | "ORIGINAL_PROJECT_FILE_PATH" = ""
8 | "NUMBER_OF_NESTED_PROJECTS" = "1"
9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROJECT"
10 | }
11 |
--------------------------------------------------------------------------------
/Brainiac Designer/BehaviorTreeListDock.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | using System;
29 | using System.Collections.Generic;
30 | using System.ComponentModel;
31 | using System.Data;
32 | using System.Drawing;
33 | using System.Text;
34 | using System.Windows.Forms;
35 |
36 | namespace Brainiac.Design
37 | {
38 | internal partial class BehaviorTreeListDock : WeifenLuo.WinFormsUI.Docking.DockContent
39 | {
40 | public BehaviorTreeListDock()
41 | {
42 | InitializeComponent();
43 | }
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/Brainiac Designer/Brainiac Designer.csproj.vspscc:
--------------------------------------------------------------------------------
1 | ""
2 | {
3 | "FILE_VERSION" = "9237"
4 | "ENLISTMENT_CHOICE" = "NEVER"
5 | "PROJECT_FILE_RELATIVE_PATH" = ""
6 | "NUMBER_OF_EXCLUDED_FILES" = "0"
7 | "ORIGINAL_PROJECT_FILE_PATH" = ""
8 | "NUMBER_OF_NESTED_PROJECTS" = "0"
9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER"
10 | }
11 |
--------------------------------------------------------------------------------
/Brainiac Designer/Program.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | using System;
29 | using System.Collections.Generic;
30 | using System.Windows.Forms;
31 |
32 | namespace Brainiac.Design
33 | {
34 | static class Program
35 | {
36 | ///
37 | /// The main entry point for the application.
38 | ///
39 | [STAThread]
40 | static void Main()
41 | {
42 | Application.EnableVisualStyles();
43 | Application.SetCompatibleTextRenderingDefault(false);
44 | Application.Run(new MainWindow());
45 | }
46 | }
47 | }
--------------------------------------------------------------------------------
/Brainiac Designer/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Normal
7 |
8 |
9 | 0, 0
10 |
11 |
12 | 0, 0
13 |
14 |
15 | False
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Brainiac Designer/Resources/brain_logo_clean.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/Brainiac Designer/Resources/brain_logo_clean.png
--------------------------------------------------------------------------------
/Brainiac Designer/SettingsDialog.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | using System;
29 | using System.Collections.Generic;
30 | using System.ComponentModel;
31 | using System.Data;
32 | using System.Drawing;
33 | using System.Text;
34 | using System.Windows.Forms;
35 | using Brainiac.Design.Properties;
36 |
37 | namespace Brainiac.Design
38 | {
39 | public partial class SettingsDialog : Form
40 | {
41 | public SettingsDialog()
42 | {
43 | InitializeComponent();
44 | }
45 |
46 | protected override void OnShown(EventArgs e)
47 | {
48 | nodeToolTipsCheckBox.Checked= Settings.Default.ShowNodeToolTips;
49 |
50 | base.OnShown(e);
51 | }
52 |
53 | private void acceptButton_Click(object sender, EventArgs e)
54 | {
55 | Settings.Default.ShowNodeToolTips= nodeToolTipsCheckBox.Checked;
56 | }
57 | }
58 | }
--------------------------------------------------------------------------------
/Brainiac Designer/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | Normal
12 |
13 |
14 | 0, 0
15 |
16 |
17 | 0, 0
18 |
19 |
20 | False
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/Brainiac Designer/icon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/Brainiac Designer/icon.ico
--------------------------------------------------------------------------------
/Brainiac Exporter/Brainiac Exporter.csproj.vspscc:
--------------------------------------------------------------------------------
1 | ""
2 | {
3 | "FILE_VERSION" = "9237"
4 | "ENLISTMENT_CHOICE" = "NEVER"
5 | "PROJECT_FILE_RELATIVE_PATH" = ""
6 | "NUMBER_OF_EXCLUDED_FILES" = "0"
7 | "ORIGINAL_PROJECT_FILE_PATH" = ""
8 | "NUMBER_OF_NESTED_PROJECTS" = "0"
9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER"
10 | }
11 |
--------------------------------------------------------------------------------
/Brainiac Exporter/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/Brainiac Exporter/icon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/Brainiac Exporter/icon.ico
--------------------------------------------------------------------------------
/Brainiac Tests/Brainiac Tests.csproj.vspscc:
--------------------------------------------------------------------------------
1 | ""
2 | {
3 | "FILE_VERSION" = "9237"
4 | "ENLISTMENT_CHOICE" = "NEVER"
5 | "PROJECT_FILE_RELATIVE_PATH" = ""
6 | "NUMBER_OF_EXCLUDED_FILES" = "0"
7 | "ORIGINAL_PROJECT_FILE_PATH" = ""
8 | "NUMBER_OF_NESTED_PROJECTS" = "0"
9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER"
10 | }
11 |
--------------------------------------------------------------------------------
/Brainiac Tests/Nodes/MultipleChildren.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | using System;
29 | using System.Collections.Generic;
30 | using System.Text;
31 |
32 | namespace Brainiac.Test.Nodes
33 | {
34 | public class MultipleChildren : Brainiac.Design.Nodes.Sequence
35 | {
36 | public MultipleChildren() : base(string.Empty, string.Empty)
37 | {
38 | }
39 |
40 | public bool AddChild(Brainiac.Design.Nodes.Node node)
41 | {
42 | return AddChild(DefaultConnector, node);
43 | }
44 |
45 | public bool AddChild(Brainiac.Design.Nodes.Node node, int index)
46 | {
47 | return AddChild(DefaultConnector, node, index);
48 | }
49 |
50 | public void RemoveChild(Brainiac.Design.Nodes.Node node)
51 | {
52 | RemoveChild(DefaultConnector, node);
53 | }
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/Brainiac Tests/Nodes/SingleChild.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | using System;
29 | using System.Collections.Generic;
30 | using System.Text;
31 |
32 | namespace Brainiac.Test.Nodes
33 | {
34 | public class SingleChild : Brainiac.Design.Nodes.Decorator
35 | {
36 | public SingleChild() : base(string.Empty, string.Empty)
37 | {
38 | }
39 |
40 | public bool AddChild(Brainiac.Design.Nodes.Node node)
41 | {
42 | return AddChild(DefaultConnector, node);
43 | }
44 |
45 | public bool AddChild(Brainiac.Design.Nodes.Node node, int index)
46 | {
47 | return AddChild(DefaultConnector, node, index);
48 | }
49 |
50 | public void RemoveChild(Brainiac.Design.Nodes.Node node)
51 | {
52 | RemoveChild(DefaultConnector, node);
53 | }
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/Brainiac Tests/TestDebug.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | using System;
29 | using System.Collections.Generic;
30 | using System.Text;
31 | using NUnit.Framework;
32 | using Brainiac.Design;
33 |
34 | namespace Brainiac.Test
35 | {
36 | [TestFixture]
37 | public class TestDebug
38 | {
39 | [Test]
40 | public void DebugCalls()
41 | {
42 | int i= 0;
43 |
44 | Debug.Check( i++ >-1 );
45 |
46 | #if DEBUG
47 | Assert.That(i ==1);
48 | #else
49 | Assert.That(i ==0);
50 | #endif
51 |
52 | int j= 0;
53 | Debug.Verify( j++ >-1 );
54 |
55 | Assert.That(j ==1);
56 | }
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/Design Mode/Design Mode.csproj.vspscc:
--------------------------------------------------------------------------------
1 | ""
2 | {
3 | "FILE_VERSION" = "9237"
4 | "ENLISTMENT_CHOICE" = "NEVER"
5 | "PROJECT_FILE_RELATIVE_PATH" = ""
6 | "NUMBER_OF_EXCLUDED_FILES" = "0"
7 | "ORIGINAL_PROJECT_FILE_PATH" = ""
8 | "NUMBER_OF_NESTED_PROJECTS" = "0"
9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER"
10 | }
11 |
--------------------------------------------------------------------------------
/Design Mode/DesignMode.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | using System;
29 | using System.Collections.Generic;
30 | using System.Text;
31 | using Brainiac.Design;
32 | using DesignMode.Properties;
33 |
34 | namespace DesignMode
35 | {
36 | public class DesignMode : Plugin
37 | {
38 | public DesignMode()
39 | {
40 | // register resource manager
41 | AddResourceManager(Resources.ResourceManager);
42 |
43 | NodeGroup design= new NodeGroup("Design", NodeIcon.FlagRed, null);
44 | _nodeGroups.Add(design);
45 |
46 | design.Items.Add(typeof(Nodes.ActionDesign));
47 | design.Items.Add(typeof(Nodes.CompositeDesign));
48 | design.Items.Add(typeof(Nodes.ConditionDesign));
49 | design.Items.Add(typeof(Nodes.DecoratorDesign));
50 | design.Items.Add(typeof(Nodes.ImpulseDesign));
51 | design.Items.Add(typeof(Events.EventDesign));
52 |
53 | // register all the file managers
54 | _fileManagers.Add( new FileManagerInfo(typeof(Brainiac.Design.FileManagers.FileManagerXML), "Behaviour XML (*.xml)|*.xml", ".xml") );
55 | }
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/Design Mode/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/AboutDialog.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Data;
5 | using System.Drawing;
6 | using System.Text;
7 | using System.Windows.Forms;
8 | using System.Reflection;
9 | using WeifenLuo.WinFormsUI.Docking;
10 |
11 | namespace DockSample
12 | {
13 | public partial class AboutDialog : Form
14 | {
15 | public AboutDialog()
16 | {
17 | InitializeComponent();
18 | }
19 |
20 | private void AboutDialog_Load(object sender, EventArgs e)
21 | {
22 | labelAppVersion.Text = typeof(MainForm).Assembly.GetName().Version.ToString();
23 | labelLibVersion.Text = typeof(DockPanel).Assembly.GetName().Version.ToString();
24 | }
25 | }
26 | }
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Customization/Extender.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Drawing;
3 | using WeifenLuo.WinFormsUI.Docking;
4 |
5 | namespace DockSample.Customization
6 | {
7 | public class Extender
8 | {
9 | public enum Schema
10 | {
11 | VS2005,
12 | VS2003
13 | }
14 |
15 | private class VS2003DockPaneStripFactory : DockPanelExtender.IDockPaneStripFactory
16 | {
17 | public DockPaneStripBase CreateDockPaneStrip(DockPane pane)
18 | {
19 | return new VS2003DockPaneStrip(pane);
20 | }
21 | }
22 |
23 | private class VS2003AutoHideStripFactory : DockPanelExtender.IAutoHideStripFactory
24 | {
25 | public AutoHideStripBase CreateAutoHideStrip(DockPanel panel)
26 | {
27 | return new VS2003AutoHideStrip(panel);
28 | }
29 | }
30 |
31 | private class VS2003DockPaneCaptionFactory : DockPanelExtender.IDockPaneCaptionFactory
32 | {
33 | public DockPaneCaptionBase CreateDockPaneCaption(DockPane pane)
34 | {
35 | return new VS2003DockPaneCaption(pane);
36 | }
37 | }
38 |
39 | public static void SetSchema(DockPanel dockPanel, Extender.Schema schema)
40 | {
41 | if (schema == Extender.Schema.VS2005)
42 | {
43 | dockPanel.Extender.AutoHideStripFactory = null;
44 | dockPanel.Extender.DockPaneCaptionFactory = null;
45 | dockPanel.Extender.DockPaneStripFactory = null;
46 | }
47 | else if (schema == Extender.Schema.VS2003)
48 | {
49 | dockPanel.Extender.DockPaneCaptionFactory = new VS2003DockPaneCaptionFactory();
50 | dockPanel.Extender.AutoHideStripFactory = new VS2003AutoHideStripFactory();
51 | dockPanel.Extender.DockPaneStripFactory = new VS2003DockPaneStripFactory();
52 | }
53 | }
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Customization/Resources/DockIndicator_PaneDiamond.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Customization/Resources/DockIndicator_PaneDiamond.bmp
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Customization/Resources/DockIndicator_PaneDiamond_Bottom.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Customization/Resources/DockIndicator_PaneDiamond_Bottom.bmp
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Customization/Resources/DockIndicator_PaneDiamond_Hotspot.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Customization/Resources/DockIndicator_PaneDiamond_Hotspot.bmp
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Customization/Resources/DockIndicator_PaneDiamond_HotspotIndex.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Customization/Resources/DockIndicator_PaneDiamond_HotspotIndex.bmp
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Customization/Resources/DockIndicator_PaneDiamond_Left.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Customization/Resources/DockIndicator_PaneDiamond_Left.bmp
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Customization/Resources/DockIndicator_PaneDiamond_Right.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Customization/Resources/DockIndicator_PaneDiamond_Right.bmp
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Customization/Resources/DockIndicator_PaneDiamond_Top.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Customization/Resources/DockIndicator_PaneDiamond_Top.bmp
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Customization/Resources/DockIndicator_PanelBottom.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Customization/Resources/DockIndicator_PanelBottom.bmp
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Customization/Resources/DockIndicator_PanelBottom_Active.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Customization/Resources/DockIndicator_PanelBottom_Active.bmp
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Customization/Resources/DockIndicator_PanelFill.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Customization/Resources/DockIndicator_PanelFill.bmp
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Customization/Resources/DockIndicator_PanelFill_Active.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Customization/Resources/DockIndicator_PanelFill_Active.bmp
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Customization/Resources/DockIndicator_PanelLeft.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Customization/Resources/DockIndicator_PanelLeft.bmp
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Customization/Resources/DockIndicator_PanelLeft_Active.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Customization/Resources/DockIndicator_PanelLeft_Active.bmp
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Customization/Resources/DockIndicator_PanelRight.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Customization/Resources/DockIndicator_PanelRight.bmp
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Customization/Resources/DockIndicator_PanelRight_Active.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Customization/Resources/DockIndicator_PanelRight_Active.bmp
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Customization/Resources/DockIndicator_PanelTop.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Customization/Resources/DockIndicator_PanelTop.bmp
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Customization/Resources/DockIndicator_PanelTop_Active.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Customization/Resources/DockIndicator_PanelTop_Active.bmp
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Customization/Resources/DockPaneCaption_AutoHideNo.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Customization/Resources/DockPaneCaption_AutoHideNo.bmp
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Customization/Resources/DockPaneCaption_AutoHideYes.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Customization/Resources/DockPaneCaption_AutoHideYes.bmp
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Customization/Resources/DockPaneCaption_CloseDisabled.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Customization/Resources/DockPaneCaption_CloseDisabled.bmp
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Customization/Resources/DockPaneCaption_CloseEnabled.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Customization/Resources/DockPaneCaption_CloseEnabled.bmp
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Customization/Resources/DockPaneStrip_CloseDisabled.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Customization/Resources/DockPaneStrip_CloseDisabled.bmp
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Customization/Resources/DockPaneStrip_CloseEnabled.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Customization/Resources/DockPaneStrip_CloseEnabled.bmp
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Customization/Resources/DockPaneStrip_ScrollLeftDisabled.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Customization/Resources/DockPaneStrip_ScrollLeftDisabled.bmp
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Customization/Resources/DockPaneStrip_ScrollLeftEnabled.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Customization/Resources/DockPaneStrip_ScrollLeftEnabled.bmp
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Customization/Resources/DockPaneStrip_ScrollRightDisabled.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Customization/Resources/DockPaneStrip_ScrollRightDisabled.bmp
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Customization/Resources/DockPaneStrip_ScrollRightEnabled.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Customization/Resources/DockPaneStrip_ScrollRightEnabled.bmp
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Customization/Resources/Dockindicator_PaneDiamond_Fill.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Customization/Resources/Dockindicator_PaneDiamond_Fill.bmp
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/DummyDoc.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Data;
5 | using System.Drawing;
6 | using System.Text;
7 | using System.Windows.Forms;
8 | using WeifenLuo.WinFormsUI.Docking;
9 | using System.IO;
10 |
11 | namespace DockSample
12 | {
13 | public partial class DummyDoc : DockContent
14 | {
15 | public DummyDoc()
16 | {
17 | InitializeComponent();
18 | }
19 |
20 | private string m_fileName = string.Empty;
21 | public string FileName
22 | {
23 | get { return m_fileName; }
24 | set
25 | {
26 | if (value != string.Empty)
27 | {
28 | Stream s = new FileStream(value, FileMode.Open);
29 |
30 | FileInfo efInfo = new FileInfo(value);
31 |
32 | string fext = efInfo.Extension.ToUpper();
33 |
34 | if (fext.Equals(".RTF"))
35 | richTextBox1.LoadFile(s, RichTextBoxStreamType.RichText);
36 | else
37 | richTextBox1.LoadFile(s, RichTextBoxStreamType.PlainText);
38 | s.Close();
39 | }
40 |
41 | m_fileName = value;
42 | this.ToolTipText = value;
43 | }
44 | }
45 |
46 | // workaround of RichTextbox control's bug:
47 | // If load file before the control showed, all the text format will be lost
48 | // re-load the file after it get showed.
49 | private bool m_resetText = true;
50 | protected override void OnPaint(PaintEventArgs e)
51 | {
52 | base.OnPaint(e);
53 |
54 | if (m_resetText)
55 | {
56 | m_resetText = false;
57 | FileName = FileName;
58 | }
59 | }
60 |
61 | protected override string GetPersistString()
62 | {
63 | // Add extra information into the persist string for this document
64 | // so that it is available when deserialized.
65 | return GetType().ToString() + "," + FileName + "," + Text;
66 | }
67 |
68 | private void menuItem2_Click(object sender, System.EventArgs e)
69 | {
70 | MessageBox.Show("This is to demostrate menu item has been successfully merged into the main form. Form Text=" + Text);
71 | }
72 |
73 | private void menuItemCheckTest_Click(object sender, System.EventArgs e)
74 | {
75 | menuItemCheckTest.Checked = !menuItemCheckTest.Checked;
76 | }
77 |
78 | protected override void OnTextChanged(EventArgs e)
79 | {
80 | base.OnTextChanged (e);
81 | if (FileName == string.Empty)
82 | this.richTextBox1.Text = Text;
83 | }
84 | }
85 | }
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/DummyOutputWindow.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Data;
5 | using System.Drawing;
6 | using System.Text;
7 | using System.Windows.Forms;
8 | using WeifenLuo.WinFormsUI.Docking;
9 |
10 | namespace DockSample
11 | {
12 | public partial class DummyOutputWindow : ToolWindow
13 | {
14 | public DummyOutputWindow()
15 | {
16 | InitializeComponent();
17 | }
18 | }
19 | }
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/DummyPropertyWindow.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Data;
5 | using System.Drawing;
6 | using System.Text;
7 | using System.Windows.Forms;
8 | using WeifenLuo.WinFormsUI.Docking;
9 |
10 | namespace DockSample
11 | {
12 | public partial class DummyPropertyWindow : ToolWindow
13 | {
14 | public DummyPropertyWindow()
15 | {
16 | InitializeComponent();
17 | comboBox.SelectedIndex = 0;
18 | propertyGrid.SelectedObject = propertyGrid;
19 | }
20 | }
21 | }
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/DummySolutionExplorer.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Data;
5 | using System.Drawing;
6 | using System.Text;
7 | using System.Windows.Forms;
8 | using WeifenLuo.WinFormsUI.Docking;
9 |
10 | namespace DockSample
11 | {
12 | public partial class DummySolutionExplorer : ToolWindow
13 | {
14 | public DummySolutionExplorer()
15 | {
16 | InitializeComponent();
17 | }
18 |
19 | protected override void OnRightToLeftLayoutChanged(EventArgs e)
20 | {
21 | treeView1.RightToLeftLayout = RightToLeftLayout;
22 | }
23 | }
24 | }
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/DummyTaskList.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Data;
5 | using System.Drawing;
6 | using System.Text;
7 | using System.Windows.Forms;
8 | using WeifenLuo.WinFormsUI.Docking;
9 |
10 | namespace DockSample
11 | {
12 | public partial class DummyTaskList : ToolWindow
13 | {
14 | public DummyTaskList()
15 | {
16 | InitializeComponent();
17 | }
18 | }
19 | }
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/DummyToolbox.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Data;
5 | using System.Drawing;
6 | using System.Text;
7 | using System.Windows.Forms;
8 | using WeifenLuo.WinFormsUI.Docking;
9 |
10 | namespace DockSample
11 | {
12 | public partial class DummyToolbox : ToolWindow
13 | {
14 | public DummyToolbox()
15 | {
16 | InitializeComponent();
17 | }
18 | }
19 | }
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Images/ArrowDown.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Images/ArrowDown.bmp
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Images/ArrowUp.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Images/ArrowUp.bmp
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Images/Bitmap.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Images/Bitmap.ico
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Images/BlankIcon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Images/BlankIcon.ico
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Images/CSFile.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Images/CSFile.ico
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Images/CSProject.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Images/CSProject.ico
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Images/ClosedFolder.ICO:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Images/ClosedFolder.ICO
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Images/File.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Images/File.ico
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Images/Form.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Images/Form.ico
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Images/Mouse.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Images/Mouse.bmp
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Images/New.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Images/New.ico
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Images/Open.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Images/Open.ico
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Images/OpenFolder.ICO:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Images/OpenFolder.ICO
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Images/OutputWindow.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Images/OutputWindow.ico
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Images/PropertyWindow.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Images/PropertyWindow.ico
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Images/Reference.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Images/Reference.ico
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Images/References.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Images/References.ico
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Images/SolutionExplorer.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Images/SolutionExplorer.ico
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Images/TaskListWindow.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Images/TaskListWindow.ico
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Images/ToolboxWindow.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Images/ToolboxWindow.ico
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Images/XmlFile.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Images/XmlFile.ico
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Images/msenv22.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Images/msenv22.ico
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Windows.Forms;
4 |
5 | namespace DockSample
6 | {
7 | static class Program
8 | {
9 | ///
10 | /// The main entry point for the application.
11 | ///
12 | [STAThread]
13 | static void Main()
14 | {
15 | Application.EnableVisualStyles();
16 | Application.SetCompatibleTextRenderingDefault(false);
17 | Application.Run(new MainForm());
18 | }
19 | }
20 | }
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("DockSample")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Weifen Luo")]
12 | [assembly: AssemblyProduct("DockSample")]
13 | [assembly: AssemblyCopyright("Copyright © Weifen Luo 2007")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("f881c535-4ab4-4ef8-93c2-785db20a791e")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | [assembly: AssemblyVersion("2.0.*")]
33 | //[assembly: AssemblyFileVersion("2.0.0.0")]
34 |
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:2.0.50727.42
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace DockSample.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "8.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/Resources/DockPanel.xml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/DockSample/Resources/DockPanel.xml
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/ToolWindow.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Data;
5 | using System.Drawing;
6 | using System.Text;
7 | using System.Windows.Forms;
8 | using WeifenLuo.WinFormsUI.Docking;
9 |
10 | namespace DockSample
11 | {
12 | public partial class ToolWindow : DockContent
13 | {
14 | public ToolWindow()
15 | {
16 | InitializeComponent();
17 | }
18 | }
19 | }
--------------------------------------------------------------------------------
/External/DockPanel/DockSample/license.txt:
--------------------------------------------------------------------------------
1 | The MIT License
2 |
3 | Copyright (c) 2007 Weifen Luo (email: weifenluo@yahoo.com)
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6 |
7 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8 |
9 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
10 |
--------------------------------------------------------------------------------
/External/DockPanel/WinFormsUI.Docking.sln:
--------------------------------------------------------------------------------
1 | Microsoft Visual Studio Solution File, Format Version 9.00
2 | # Visual C# Express 2005
3 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WinFormsUI", "WinFormsUI\WinFormsUI.csproj", "{C75532C4-765B-418E-B09B-46D36B2ABDB1}"
4 | EndProject
5 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DockSample", "DockSample\DockSample.csproj", "{40793A27-478B-4357-B4C3-FC8943131F3D}"
6 | EndProject
7 | Global
8 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
9 | Debug|Any CPU = Debug|Any CPU
10 | Release|Any CPU = Release|Any CPU
11 | EndGlobalSection
12 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
13 | {C75532C4-765B-418E-B09B-46D36B2ABDB1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
14 | {C75532C4-765B-418E-B09B-46D36B2ABDB1}.Debug|Any CPU.Build.0 = Debug|Any CPU
15 | {C75532C4-765B-418E-B09B-46D36B2ABDB1}.Release|Any CPU.ActiveCfg = Release|Any CPU
16 | {C75532C4-765B-418E-B09B-46D36B2ABDB1}.Release|Any CPU.Build.0 = Release|Any CPU
17 | {40793A27-478B-4357-B4C3-FC8943131F3D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
18 | {40793A27-478B-4357-B4C3-FC8943131F3D}.Debug|Any CPU.Build.0 = Debug|Any CPU
19 | {40793A27-478B-4357-B4C3-FC8943131F3D}.Release|Any CPU.ActiveCfg = Release|Any CPU
20 | {40793A27-478B-4357-B4C3-FC8943131F3D}.Release|Any CPU.Build.0 = Release|Any CPU
21 | EndGlobalSection
22 | GlobalSection(SolutionProperties) = preSolution
23 | HideSolutionNode = FALSE
24 | EndGlobalSection
25 | EndGlobal
26 |
--------------------------------------------------------------------------------
/External/DockPanel/WinFormsUI/Docking/DockContentEventArgs.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace WeifenLuo.WinFormsUI.Docking
4 | {
5 | public class DockContentEventArgs : EventArgs
6 | {
7 | private IDockContent m_content;
8 |
9 | public DockContentEventArgs(IDockContent content)
10 | {
11 | m_content = content;
12 | }
13 |
14 | public IDockContent Content
15 | {
16 | get { return m_content; }
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/External/DockPanel/WinFormsUI/Docking/DockPaneCollection.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.ObjectModel;
3 | using System.Collections.Generic;
4 | using System.Drawing;
5 | using System.Windows.Forms;
6 |
7 | namespace WeifenLuo.WinFormsUI.Docking
8 | {
9 | public class DockPaneCollection : ReadOnlyCollection
10 | {
11 | internal DockPaneCollection()
12 | : base(new List())
13 | {
14 | }
15 |
16 | internal int Add(DockPane pane)
17 | {
18 | if (Items.Contains(pane))
19 | return Items.IndexOf(pane);
20 |
21 | Items.Add(pane);
22 | return Count - 1;
23 | }
24 |
25 | internal void AddAt(DockPane pane, int index)
26 | {
27 | if (index < 0 || index > Items.Count - 1)
28 | return;
29 |
30 | if (Contains(pane))
31 | return;
32 |
33 | Items.Insert(index, pane);
34 | }
35 |
36 | internal void Dispose()
37 | {
38 | for (int i=Count - 1; i>=0; i--)
39 | this[i].Close();
40 | }
41 |
42 | internal void Remove(DockPane pane)
43 | {
44 | Items.Remove(pane);
45 | }
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/External/DockPanel/WinFormsUI/Docking/DockPanel.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/WinFormsUI/Docking/DockPanel.bmp
--------------------------------------------------------------------------------
/External/DockPanel/WinFormsUI/Docking/DockWindow.SplitterControl.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections;
3 | using System.ComponentModel;
4 | using System.Drawing;
5 | using System.Windows.Forms;
6 |
7 | namespace WeifenLuo.WinFormsUI.Docking
8 | {
9 | public partial class DockWindow
10 | {
11 | private class SplitterControl : SplitterBase
12 | {
13 | protected override int SplitterSize
14 | {
15 | get { return Measures.SplitterSize; }
16 | }
17 |
18 | protected override void StartDrag()
19 | {
20 | DockWindow window = Parent as DockWindow;
21 | if (window == null)
22 | return;
23 |
24 | window.DockPanel.BeginDrag(window, window.RectangleToScreen(Bounds));
25 | }
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/External/DockPanel/WinFormsUI/Docking/DockWindowCollection.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Collections.ObjectModel;
4 |
5 | namespace WeifenLuo.WinFormsUI.Docking
6 | {
7 | public class DockWindowCollection : ReadOnlyCollection
8 | {
9 | internal DockWindowCollection(DockPanel dockPanel)
10 | : base(new List())
11 | {
12 | Items.Add(new DockWindow(dockPanel, DockState.Document));
13 | Items.Add(new DockWindow(dockPanel, DockState.DockLeft));
14 | Items.Add(new DockWindow(dockPanel, DockState.DockRight));
15 | Items.Add(new DockWindow(dockPanel, DockState.DockTop));
16 | Items.Add(new DockWindow(dockPanel, DockState.DockBottom));
17 | }
18 |
19 | public DockWindow this [DockState dockState]
20 | {
21 | get
22 | {
23 | if (dockState == DockState.Document)
24 | return Items[0];
25 | else if (dockState == DockState.DockLeft || dockState == DockState.DockLeftAutoHide)
26 | return Items[1];
27 | else if (dockState == DockState.DockRight || dockState == DockState.DockRightAutoHide)
28 | return Items[2];
29 | else if (dockState == DockState.DockTop || dockState == DockState.DockTopAutoHide)
30 | return Items[3];
31 | else if (dockState == DockState.DockBottom || dockState == DockState.DockBottomAutoHide)
32 | return Items[4];
33 |
34 | throw (new ArgumentOutOfRangeException());
35 | }
36 | }
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/External/DockPanel/WinFormsUI/Docking/DragForm.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 |
4 | namespace WeifenLuo.WinFormsUI.Docking
5 | {
6 | // Inspired by Chris Sano's article:
7 | // http://msdn.microsoft.com/smartclient/default.aspx?pull=/library/en-us/dnwinforms/html/colorpicker.asp
8 | // In Sano's article, the DragForm needs to meet the following criteria:
9 | // (1) it was not to show up in the task bar;
10 | // ShowInTaskBar = false
11 | // (2) it needed to be the top-most window;
12 | // TopMost = true (not necessary here)
13 | // (3) its icon could not show up in the ALT+TAB window if the user pressed ALT+TAB during a drag-and-drop;
14 | // FormBorderStyle = FormBorderStyle.None;
15 | // Create with WS_EX_TOOLWINDOW window style.
16 | // Compares with the solution in the artile by setting FormBorderStyle as FixedToolWindow,
17 | // and then clip the window caption and border, this way is much simplier.
18 | // (4) it was not to steal focus from the application when displayed.
19 | // User Win32 ShowWindow API with SW_SHOWNOACTIVATE
20 | // In addition, this form should only for display and therefore should act as transparent, otherwise
21 | // WindowFromPoint will return this form, instead of the control beneath. Need BOTH of the following to
22 | // achieve this (don't know why, spent hours to try it out :( ):
23 | // 1. Enabled = false;
24 | // 2. WM_NCHITTEST returns HTTRANSPARENT
25 | internal class DragForm : Form
26 | {
27 | public DragForm()
28 | {
29 | FormBorderStyle = FormBorderStyle.None;
30 | ShowInTaskbar = false;
31 | SetStyle(ControlStyles.Selectable, false);
32 | Enabled = false;
33 | }
34 |
35 | protected override CreateParams CreateParams
36 | {
37 | get
38 | {
39 | CreateParams createParams = base.CreateParams;
40 | createParams.ExStyle |= (int)Win32.WindowExStyles.WS_EX_TOOLWINDOW;
41 | return createParams;
42 | }
43 | }
44 |
45 | protected override void WndProc(ref Message m)
46 | {
47 | if (m.Msg == (int)Win32.Msgs.WM_NCHITTEST)
48 | {
49 | m.Result = (IntPtr)Win32.HitTest.HTTRANSPARENT;
50 | return;
51 | }
52 |
53 | base.WndProc (ref m);
54 | }
55 |
56 | public virtual void Show(bool bActivate)
57 | {
58 | if (bActivate)
59 | Show();
60 | else
61 | NativeMethods.ShowWindow(Handle, (int)Win32.ShowWindowStyles.SW_SHOWNOACTIVATE);
62 | }
63 | }
64 | }
65 |
--------------------------------------------------------------------------------
/External/DockPanel/WinFormsUI/Docking/DummyControl.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 |
4 | namespace WeifenLuo.WinFormsUI.Docking
5 | {
6 | internal class DummyControl : Control
7 | {
8 | public DummyControl()
9 | {
10 | SetStyle(ControlStyles.Selectable, false);
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/External/DockPanel/WinFormsUI/Docking/Enums.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.ComponentModel;
3 | using System.Windows.Forms;
4 |
5 | namespace WeifenLuo.WinFormsUI.Docking
6 | {
7 | [Flags]
8 | [Serializable]
9 | [Editor(typeof(DockAreasEditor), typeof(System.Drawing.Design.UITypeEditor))]
10 | public enum DockAreas
11 | {
12 | Float = 1,
13 | DockLeft = 2,
14 | DockRight = 4,
15 | DockTop = 8,
16 | DockBottom = 16,
17 | Document = 32
18 | }
19 |
20 | public enum DockState
21 | {
22 | Unknown = 0,
23 | Float = 1,
24 | DockTopAutoHide = 2,
25 | DockLeftAutoHide = 3,
26 | DockBottomAutoHide = 4,
27 | DockRightAutoHide = 5,
28 | Document = 6,
29 | DockTop = 7,
30 | DockLeft = 8,
31 | DockBottom = 9,
32 | DockRight = 10,
33 | Hidden = 11
34 | }
35 |
36 | public enum DockAlignment
37 | {
38 | Left,
39 | Right,
40 | Top,
41 | Bottom
42 | }
43 |
44 | public enum DocumentStyle
45 | {
46 | DockingMdi,
47 | DockingWindow,
48 | DockingSdi,
49 | SystemMdi,
50 | }
51 |
52 | ///
53 | /// The location to draw the DockPaneStrip for Document style windows.
54 | ///
55 | public enum DocumentTabStripLocation
56 | {
57 | Top,
58 | Bottom
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/External/DockPanel/WinFormsUI/Docking/FloatWindowCollection.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Collections.ObjectModel;
4 | using System.Drawing;
5 | using System.Windows.Forms;
6 |
7 | namespace WeifenLuo.WinFormsUI.Docking
8 | {
9 | public class FloatWindowCollection : ReadOnlyCollection
10 | {
11 | internal FloatWindowCollection()
12 | : base(new List())
13 | {
14 | }
15 |
16 | internal int Add(FloatWindow fw)
17 | {
18 | if (Items.Contains(fw))
19 | return Items.IndexOf(fw);
20 |
21 | Items.Add(fw);
22 | return Count - 1;
23 | }
24 |
25 | internal void Dispose()
26 | {
27 | for (int i=Count - 1; i>=0; i--)
28 | this[i].Close();
29 | }
30 |
31 | internal void Remove(FloatWindow fw)
32 | {
33 | Items.Remove(fw);
34 | }
35 |
36 | internal void BringWindowToFront(FloatWindow fw)
37 | {
38 | Items.Remove(fw);
39 | Items.Add(fw);
40 | }
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/External/DockPanel/WinFormsUI/Docking/Helpers/ResourceHelper.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Drawing;
3 | using System.Reflection;
4 | using System.Resources;
5 | using System.Windows.Forms;
6 |
7 | namespace WeifenLuo.WinFormsUI.Docking
8 | {
9 | internal static class ResourceHelper
10 | {
11 | private static ResourceManager _resourceManager = null;
12 |
13 | private static ResourceManager ResourceManager
14 | {
15 | get
16 | {
17 | if (_resourceManager == null)
18 | _resourceManager = new ResourceManager("WeifenLuo.WinFormsUI.Docking.Strings", typeof(ResourceHelper).Assembly);
19 | return _resourceManager;
20 | }
21 |
22 | }
23 |
24 | public static string GetString(string name)
25 | {
26 | return ResourceManager.GetString(name);
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/External/DockPanel/WinFormsUI/Docking/Helpers/Win32Helper.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Drawing;
3 | using System.Windows.Forms;
4 |
5 | namespace WeifenLuo.WinFormsUI.Docking
6 | {
7 | internal static class Win32Helper
8 | {
9 | public static Control ControlAtPoint(Point pt)
10 | {
11 | return Control.FromChildHandle(NativeMethods.WindowFromPoint(pt));
12 | }
13 |
14 | public static uint MakeLong(int low, int high)
15 | {
16 | return (uint)((high << 16) + low);
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/External/DockPanel/WinFormsUI/Docking/Interfaces.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Drawing;
3 | using System.Windows.Forms;
4 |
5 | namespace WeifenLuo.WinFormsUI.Docking
6 | {
7 | public interface IDockContent
8 | {
9 | DockContentHandler DockHandler { get; }
10 | void OnActivated(EventArgs e);
11 | void OnDeactivate(EventArgs e);
12 | }
13 |
14 | public interface INestedPanesContainer
15 | {
16 | DockState DockState { get; }
17 | Rectangle DisplayingRectangle { get; }
18 | NestedPaneCollection NestedPanes { get; }
19 | VisibleNestedPaneCollection VisibleNestedPanes { get; }
20 | bool IsFloat { get; }
21 | }
22 |
23 | internal interface IDragSource
24 | {
25 | Control DragControl { get; }
26 | }
27 |
28 | internal interface IDockDragSource : IDragSource
29 | {
30 | Rectangle BeginDrag(Point ptMouse);
31 | bool IsDockStateValid(DockState dockState);
32 | bool CanDockTo(DockPane pane);
33 | void FloatAt(Rectangle floatWindowBounds);
34 | void DockTo(DockPane pane, DockStyle dockStyle, int contentIndex);
35 | void DockTo(DockPanel panel, DockStyle dockStyle);
36 | }
37 |
38 | internal interface ISplitterDragSource : IDragSource
39 | {
40 | void BeginDrag(Rectangle rectSplitter);
41 | void EndDrag();
42 | bool IsVertical { get; }
43 | Rectangle DragLimitBounds { get; }
44 | void MoveSplitter(int offset);
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/External/DockPanel/WinFormsUI/Docking/Localization.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.ComponentModel;
3 |
4 | namespace WeifenLuo.WinFormsUI.Docking
5 | {
6 | [AttributeUsage(AttributeTargets.All)]
7 | internal sealed class LocalizedDescriptionAttribute : DescriptionAttribute
8 | {
9 | private bool m_initialized = false;
10 |
11 | public LocalizedDescriptionAttribute(string key) : base(key)
12 | {
13 | }
14 |
15 | public override string Description
16 | {
17 | get
18 | {
19 | if (!m_initialized)
20 | {
21 | string key = base.Description;
22 | DescriptionValue = ResourceHelper.GetString(key);
23 | if (DescriptionValue == null)
24 | DescriptionValue = String.Empty;
25 |
26 | m_initialized = true;
27 | }
28 |
29 | return DescriptionValue;
30 | }
31 | }
32 | }
33 |
34 | [AttributeUsage(AttributeTargets.All)]
35 | internal sealed class LocalizedCategoryAttribute : CategoryAttribute
36 | {
37 | public LocalizedCategoryAttribute(string key) : base(key)
38 | {
39 | }
40 |
41 | protected override string GetLocalizedString(string key)
42 | {
43 | return ResourceHelper.GetString(key);
44 | }
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/External/DockPanel/WinFormsUI/Docking/Measures.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace WeifenLuo.WinFormsUI.Docking
4 | {
5 | internal static class Measures
6 | {
7 | public const int SplitterSize = 4;
8 | }
9 |
10 | internal static class MeasurePane
11 | {
12 | public const int MinSize = 24;
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/External/DockPanel/WinFormsUI/Docking/Resources/DockIndicator_PaneDiamond.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/WinFormsUI/Docking/Resources/DockIndicator_PaneDiamond.bmp
--------------------------------------------------------------------------------
/External/DockPanel/WinFormsUI/Docking/Resources/DockIndicator_PaneDiamond_Bottom.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/WinFormsUI/Docking/Resources/DockIndicator_PaneDiamond_Bottom.bmp
--------------------------------------------------------------------------------
/External/DockPanel/WinFormsUI/Docking/Resources/DockIndicator_PaneDiamond_Hotspot.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/WinFormsUI/Docking/Resources/DockIndicator_PaneDiamond_Hotspot.bmp
--------------------------------------------------------------------------------
/External/DockPanel/WinFormsUI/Docking/Resources/DockIndicator_PaneDiamond_HotspotIndex.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/WinFormsUI/Docking/Resources/DockIndicator_PaneDiamond_HotspotIndex.bmp
--------------------------------------------------------------------------------
/External/DockPanel/WinFormsUI/Docking/Resources/DockIndicator_PaneDiamond_Left.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/WinFormsUI/Docking/Resources/DockIndicator_PaneDiamond_Left.bmp
--------------------------------------------------------------------------------
/External/DockPanel/WinFormsUI/Docking/Resources/DockIndicator_PaneDiamond_Right.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/WinFormsUI/Docking/Resources/DockIndicator_PaneDiamond_Right.bmp
--------------------------------------------------------------------------------
/External/DockPanel/WinFormsUI/Docking/Resources/DockIndicator_PaneDiamond_Top.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/WinFormsUI/Docking/Resources/DockIndicator_PaneDiamond_Top.bmp
--------------------------------------------------------------------------------
/External/DockPanel/WinFormsUI/Docking/Resources/DockIndicator_PanelBottom.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/WinFormsUI/Docking/Resources/DockIndicator_PanelBottom.bmp
--------------------------------------------------------------------------------
/External/DockPanel/WinFormsUI/Docking/Resources/DockIndicator_PanelBottom_Active.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/WinFormsUI/Docking/Resources/DockIndicator_PanelBottom_Active.bmp
--------------------------------------------------------------------------------
/External/DockPanel/WinFormsUI/Docking/Resources/DockIndicator_PanelFill.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/WinFormsUI/Docking/Resources/DockIndicator_PanelFill.bmp
--------------------------------------------------------------------------------
/External/DockPanel/WinFormsUI/Docking/Resources/DockIndicator_PanelFill_Active.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/WinFormsUI/Docking/Resources/DockIndicator_PanelFill_Active.bmp
--------------------------------------------------------------------------------
/External/DockPanel/WinFormsUI/Docking/Resources/DockIndicator_PanelLeft.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/WinFormsUI/Docking/Resources/DockIndicator_PanelLeft.bmp
--------------------------------------------------------------------------------
/External/DockPanel/WinFormsUI/Docking/Resources/DockIndicator_PanelLeft_Active.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/WinFormsUI/Docking/Resources/DockIndicator_PanelLeft_Active.bmp
--------------------------------------------------------------------------------
/External/DockPanel/WinFormsUI/Docking/Resources/DockIndicator_PanelRight.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/WinFormsUI/Docking/Resources/DockIndicator_PanelRight.bmp
--------------------------------------------------------------------------------
/External/DockPanel/WinFormsUI/Docking/Resources/DockIndicator_PanelRight_Active.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/WinFormsUI/Docking/Resources/DockIndicator_PanelRight_Active.bmp
--------------------------------------------------------------------------------
/External/DockPanel/WinFormsUI/Docking/Resources/DockIndicator_PanelTop.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/WinFormsUI/Docking/Resources/DockIndicator_PanelTop.bmp
--------------------------------------------------------------------------------
/External/DockPanel/WinFormsUI/Docking/Resources/DockIndicator_PanelTop_Active.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/WinFormsUI/Docking/Resources/DockIndicator_PanelTop_Active.bmp
--------------------------------------------------------------------------------
/External/DockPanel/WinFormsUI/Docking/Resources/DockPane_AutoHide.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/WinFormsUI/Docking/Resources/DockPane_AutoHide.bmp
--------------------------------------------------------------------------------
/External/DockPanel/WinFormsUI/Docking/Resources/DockPane_Close.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/WinFormsUI/Docking/Resources/DockPane_Close.bmp
--------------------------------------------------------------------------------
/External/DockPanel/WinFormsUI/Docking/Resources/DockPane_Dock.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/WinFormsUI/Docking/Resources/DockPane_Dock.bmp
--------------------------------------------------------------------------------
/External/DockPanel/WinFormsUI/Docking/Resources/DockPane_Option.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/WinFormsUI/Docking/Resources/DockPane_Option.bmp
--------------------------------------------------------------------------------
/External/DockPanel/WinFormsUI/Docking/Resources/DockPane_OptionOverflow.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/WinFormsUI/Docking/Resources/DockPane_OptionOverflow.bmp
--------------------------------------------------------------------------------
/External/DockPanel/WinFormsUI/Docking/Resources/Dockindicator_PaneDiamond_Fill.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/learno/Brainiac-Designer/3286b895f84a9417b0b18dc7be8c4565a9bbf659/External/DockPanel/WinFormsUI/Docking/Resources/Dockindicator_PaneDiamond_Fill.bmp
--------------------------------------------------------------------------------
/External/DockPanel/WinFormsUI/Docking/SplitterBase.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections;
3 | using System.ComponentModel;
4 | using System.Drawing;
5 | using System.Windows.Forms;
6 |
7 | namespace WeifenLuo.WinFormsUI.Docking
8 | {
9 | internal class SplitterBase : Control
10 | {
11 | public SplitterBase()
12 | {
13 | SetStyle(ControlStyles.Selectable, false);
14 | }
15 |
16 | public override DockStyle Dock
17 | {
18 | get { return base.Dock; }
19 | set
20 | {
21 | SuspendLayout();
22 | base.Dock = value;
23 |
24 | if (Dock == DockStyle.Left || Dock == DockStyle.Right)
25 | Width = SplitterSize;
26 | else if (Dock == DockStyle.Top || Dock == DockStyle.Bottom)
27 | Height = SplitterSize;
28 | else
29 | Bounds = Rectangle.Empty;
30 |
31 | if (Dock == DockStyle.Left || Dock == DockStyle.Right)
32 | Cursor = Cursors.VSplit;
33 | else if (Dock == DockStyle.Top || Dock == DockStyle.Bottom)
34 | Cursor = Cursors.HSplit;
35 | else
36 | Cursor = Cursors.Default;
37 |
38 | ResumeLayout();
39 | }
40 | }
41 |
42 | protected virtual int SplitterSize
43 | {
44 | get { return 0; }
45 | }
46 |
47 | protected override void OnMouseDown(MouseEventArgs e)
48 | {
49 | base.OnMouseDown(e);
50 |
51 | if (e.Button != MouseButtons.Left)
52 | return;
53 |
54 | StartDrag();
55 | }
56 |
57 | protected virtual void StartDrag()
58 | {
59 | }
60 |
61 | protected override void WndProc(ref Message m)
62 | {
63 | // eat the WM_MOUSEACTIVATE message
64 | if (m.Msg == (int)Win32.Msgs.WM_MOUSEACTIVATE)
65 | return;
66 |
67 | base.WndProc(ref m);
68 | }
69 | }
70 | }
71 |
--------------------------------------------------------------------------------
/External/DockPanel/WinFormsUI/Docking/Win32/NativeMethods.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Drawing;
3 | using System.Runtime.InteropServices;
4 | using System.Diagnostics.CodeAnalysis;
5 | using WeifenLuo.WinFormsUI.Docking.Win32;
6 |
7 | namespace WeifenLuo.WinFormsUI.Docking
8 | {
9 | internal static class NativeMethods
10 | {
11 | [DllImport("User32.dll", CharSet=CharSet.Auto)]
12 | [return: MarshalAs(UnmanagedType.Bool)]
13 | public static extern bool DragDetect(IntPtr hWnd, Point pt);
14 |
15 | [DllImport("User32.dll", CharSet=CharSet.Auto)]
16 | public static extern IntPtr GetFocus();
17 |
18 | [DllImport("User32.dll", CharSet=CharSet.Auto)]
19 | public static extern IntPtr SetFocus(IntPtr hWnd);
20 |
21 | [DllImport("User32.dll", CharSet=CharSet.Auto)]
22 | [return: MarshalAs(UnmanagedType.Bool)]
23 | public static extern bool PostMessage(IntPtr hWnd, int Msg, uint wParam, uint lParam);
24 |
25 | [DllImport("User32.dll", CharSet=CharSet.Auto)]
26 | public static extern uint SendMessage(IntPtr hWnd, int Msg, uint wParam, uint lParam);
27 |
28 | [DllImport("User32.dll", CharSet=CharSet.Auto)]
29 | public static extern int ShowWindow(IntPtr hWnd, short cmdShow);
30 |
31 | [DllImport("User32.dll", CharSet=CharSet.Auto)]
32 | public static extern int SetWindowPos(IntPtr hWnd, IntPtr hWndAfter, int X, int Y, int Width, int Height, FlagsSetWindowPos flags);
33 |
34 | [DllImport("user32.dll", CharSet = CharSet.Auto)]
35 | public static extern int GetWindowLong(IntPtr hWnd, int Index);
36 |
37 | [DllImport("user32.dll", CharSet = CharSet.Auto)]
38 | public static extern int SetWindowLong(IntPtr hWnd, int Index, int Value);
39 |
40 | [DllImport("user32.dll", CharSet=CharSet.Auto)]
41 | public static extern int ShowScrollBar(IntPtr hWnd, int wBar, int bShow);
42 |
43 | [DllImport("user32.dll", CharSet=CharSet.Auto)]
44 | //*********************************
45 | // FxCop bug, suppress the message
46 | //*********************************
47 | [SuppressMessage("Microsoft.Portability", "CA1901:PInvokeDeclarationsShouldBePortable", MessageId = "0")]
48 | public static extern IntPtr WindowFromPoint(Point point);
49 |
50 | [DllImport("Kernel32.dll", CharSet = CharSet.Auto)]
51 | public static extern int GetCurrentThreadId();
52 |
53 | public delegate IntPtr HookProc(int code, IntPtr wParam, IntPtr lParam);
54 |
55 | [DllImport("user32.dll")]
56 | public static extern IntPtr SetWindowsHookEx(Win32.HookType code, HookProc func, IntPtr hInstance, int threadID);
57 |
58 | [DllImport("user32.dll")]
59 | public static extern int UnhookWindowsHookEx(IntPtr hhook);
60 |
61 | [DllImport("user32.dll")]
62 | public static extern IntPtr CallNextHookEx(IntPtr hhook, int code, IntPtr wParam, IntPtr lParam);
63 | }
64 | }
--------------------------------------------------------------------------------
/External/DockPanel/WinFormsUI/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Reflection;
3 | using System.Runtime.CompilerServices;
4 | using System.Runtime.InteropServices;
5 | using System.Diagnostics.CodeAnalysis;
6 |
7 | [assembly: AssemblyTitle("DockPanel Suite for .Net 2.0")]
8 | [assembly: AssemblyDescription(".Net Docking Library for Windows Forms")]
9 | [assembly: AssemblyConfiguration("")]
10 | [assembly: AssemblyCompany("Weifen Luo")]
11 | [assembly: AssemblyProduct("DockPanel Suite")]
12 | [assembly: AssemblyCopyright("Copyright © Weifen Luo 2007")]
13 | [assembly: AssemblyTrademark("")]
14 | [assembly: AssemblyCulture("")]
15 | [assembly: CLSCompliant(true)]
16 |
17 | [assembly: ComVisible(false)]
18 |
19 | [assembly: Guid("9d690ef9-ce19-4c69-874c-e24d8eb36aff")]
20 |
21 | [assembly: AssemblyVersion("2.3.*")]
22 | [assembly: AssemblyFileVersion("2.3.0.0")]
23 |
24 | [module: SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Scope = "namespace", Target = "WeifenLuo.WinFormsUI.Docking", MessageId = "Weifen")]
25 | [module: SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Scope = "namespace", Target = "WeifenLuo.WinFormsUI.Docking", MessageId = "Luo")]
26 | [module: SuppressMessage("Microsoft.Naming", "CA1703:ResourceStringsShouldBeSpelledCorrectly", Scope = "resource", Target = "WeifenLuo.WinFormsUI.Docking.Strings.resources", MessageId = "Weifen")]
27 | [module: SuppressMessage("Microsoft.Naming", "CA1703:ResourceStringsShouldBeSpelledCorrectly", Scope = "resource", Target = "WeifenLuo.WinFormsUI.Docking.Strings.resources", MessageId = "Luo")]
28 | [module: SuppressMessage("Microsoft.Naming", "CA1703:ResourceStringsShouldBeSpelledCorrectly", Scope = "resource", Target = "WeifenLuo.WinFormsUI.Docking.Strings.resources", MessageId = "Dockable")]
--------------------------------------------------------------------------------
/External/DockPanel/WinFormsUI/WinFormsUI.csproj.vspscc:
--------------------------------------------------------------------------------
1 | ""
2 | {
3 | "FILE_VERSION" = "9237"
4 | "ENLISTMENT_CHOICE" = "NEVER"
5 | "PROJECT_FILE_RELATIVE_PATH" = ""
6 | "NUMBER_OF_EXCLUDED_FILES" = "0"
7 | "ORIGINAL_PROJECT_FILE_PATH" = ""
8 | "NUMBER_OF_NESTED_PROJECTS" = "0"
9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER"
10 | }
11 |
--------------------------------------------------------------------------------
/External/DockPanel/WinFormsUI/license.txt:
--------------------------------------------------------------------------------
1 | The MIT License
2 |
3 | Copyright (c) 2007 Weifen Luo (email: weifenluo@yahoo.com)
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6 |
7 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8 |
9 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
10 |
--------------------------------------------------------------------------------
/External/DockPanel/license.txt:
--------------------------------------------------------------------------------
1 | The MIT License
2 |
3 | Copyright (c) 2007 Weifen Luo (email: weifenluo@yahoo.com)
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6 |
7 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8 |
9 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
10 |
--------------------------------------------------------------------------------
/Project Hoshimi Design/Enums.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | using System;
29 | using System.Collections.Generic;
30 | using System.Text;
31 |
32 | namespace ProjectHoshimi
33 | {
34 | public enum UnitType { BotAI, Needle, Transporter }
35 | public enum EntityType { BotAI, HoshimiPointWithNeedle, HoshimiPointWithoutNeedle, Needle, OXY, Transporter }
36 | public enum BuildUnitType { Needle, Transporter }
37 | }
38 |
--------------------------------------------------------------------------------
/Project Hoshimi Design/Events/FocusDestroyed.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | using System;
29 | using System.Collections.Generic;
30 | using System.Text;
31 | using Brainiac.Design;
32 | using Brainiac.Design.Attributes;
33 | using ProjectHoshimi.Properties;
34 |
35 | namespace ProjectHoshimi.Events
36 | {
37 | public class FocusDestroyed : Brainiac.Design.Events.Event
38 | {
39 | protected UnitType _type;
40 |
41 | [DesignerEnum("EventFocusDestroyedType", "EventFocusDestroyedTypeDesc", "CategoryBasic", DesignerProperty.DisplayMode.Parameter, 0, DesignerProperty.DesignerFlags.NoFlags, null)]
42 | public UnitType UnitType
43 | {
44 | get { return _type; }
45 | set { _type= value; }
46 | }
47 |
48 | public FocusDestroyed(Brainiac.Design.Nodes.Node node) : base(node, Resources.EventFocusDestroyed, Resources.EventFocusDestroyedDesc)
49 | {
50 | }
51 |
52 | protected override void CloneProperties(Brainiac.Design.Events.Event newevent)
53 | {
54 | base.CloneProperties(newevent);
55 |
56 | FocusDestroyed evnt= (FocusDestroyed)newevent;
57 | evnt._type= _type;
58 | }
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/Project Hoshimi Design/Events/UnitBuilt.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | using System;
29 | using System.Collections.Generic;
30 | using System.Text;
31 | using Brainiac.Design;
32 | using Brainiac.Design.Attributes;
33 | using ProjectHoshimi.Properties;
34 |
35 | namespace ProjectHoshimi.Events
36 | {
37 | public class UnitBuilt : Brainiac.Design.Events.Event
38 | {
39 | protected BuildUnitType _type;
40 |
41 | [DesignerEnum("EventUnitBuiltType", "EventUnitBuiltTypeDesc", "CategoryBasic", DesignerProperty.DisplayMode.Parameter, 0, DesignerProperty.DesignerFlags.NoFlags, null)]
42 | public BuildUnitType UnitType
43 | {
44 | get { return _type; }
45 | set { _type= value; }
46 | }
47 |
48 | public UnitBuilt(Brainiac.Design.Nodes.Node node) : base(node, Resources.EventUnitBuilt, Resources.EventUnitBuiltDesc)
49 | {
50 | }
51 |
52 | protected override void CloneProperties(Brainiac.Design.Events.Event newevent)
53 | {
54 | base.CloneProperties(newevent);
55 |
56 | UnitBuilt evnt= (UnitBuilt)newevent;
57 | evnt._type= _type;
58 | }
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/Project Hoshimi Design/Events/UnitDestroyed.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | using System;
29 | using System.Collections.Generic;
30 | using System.Text;
31 | using Brainiac.Design;
32 | using Brainiac.Design.Attributes;
33 | using ProjectHoshimi.Properties;
34 |
35 | namespace ProjectHoshimi.Events
36 | {
37 | public class UnitDestroyed : Brainiac.Design.Events.Event
38 | {
39 | protected UnitType _type;
40 |
41 | [DesignerEnum("EventUnitDestroyedType", "EventUnitDestroyedTypeDesc", "CategoryBasic", DesignerProperty.DisplayMode.Parameter, 0, DesignerProperty.DesignerFlags.NoFlags, null)]
42 | public UnitType UnitType
43 | {
44 | get { return _type; }
45 | set { _type= value; }
46 | }
47 |
48 | public UnitDestroyed(Brainiac.Design.Nodes.Node node) : base(node, Resources.EventUnitDestroyed, Resources.EventUnitDestroyedDesc)
49 | {
50 | }
51 |
52 | protected override void CloneProperties(Brainiac.Design.Events.Event newevent)
53 | {
54 | base.CloneProperties(newevent);
55 |
56 | UnitDestroyed evnt= (UnitDestroyed)newevent;
57 | evnt._type= _type;
58 | }
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/Project Hoshimi Design/Nodes/ActionBuild.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | //using System;
29 | using System.Collections.Generic;
30 | using System.Text;
31 | using Brainiac.Design.Nodes;
32 | using ProjectHoshimi.Properties;
33 | using Brainiac.Design.Attributes;
34 |
35 | namespace ProjectHoshimi.Nodes
36 | {
37 | public class ActionBuild : Action
38 | {
39 | protected BuildUnitType _type;
40 |
41 | [DesignerEnum("ActionBuildUnitType", "ActionBuildUnitTypeDesc", "CategoryBasic", DesignerProperty.DisplayMode.Parameter, 0, DesignerProperty.DesignerFlags.NoFlags, null)]
42 | public BuildUnitType UnitToBuild
43 | {
44 | get { return _type; }
45 | set { _type= value; }
46 | }
47 |
48 | public ActionBuild() : base(Resources.ActionBuild, Resources.ActionBuildDesc)
49 | {
50 | }
51 |
52 | protected override void CloneProperties(Node newnode)
53 | {
54 | base.CloneProperties(newnode);
55 |
56 | ActionBuild act= (ActionBuild)newnode;
57 | act._type= _type;
58 | }
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/Project Hoshimi Design/Nodes/ActionFocusClosest.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | //using System;
29 | using System.Collections.Generic;
30 | using System.Text;
31 | using Brainiac.Design.Nodes;
32 | using ProjectHoshimi.Properties;
33 | using Brainiac.Design.Attributes;
34 |
35 | namespace ProjectHoshimi.Nodes
36 | {
37 | public class ActionFocusClosest : Action
38 | {
39 | protected EntityType _type;
40 |
41 | [DesignerEnum("ActionFocusClosestUnitType", "ActionFocusClosestUnitTypeDesc", "CategoryBasic", DesignerProperty.DisplayMode.Parameter, 0, DesignerProperty.DesignerFlags.NoFlags, null)]
42 | public EntityType UnitType
43 | {
44 | get { return _type; }
45 | set { _type= value; }
46 | }
47 |
48 | public ActionFocusClosest() : base(Resources.ActionFocusClosest, Resources.ActionFocusClosestDesc)
49 | {
50 | }
51 |
52 | protected override void CloneProperties(Node newnode)
53 | {
54 | base.CloneProperties(newnode);
55 |
56 | ActionFocusClosest act= (ActionFocusClosest)newnode;
57 | act._type= _type;
58 | }
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/Project Hoshimi Design/Nodes/ActionFollowFocus.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | //using System;
29 | using System.Collections.Generic;
30 | using System.Text;
31 | using Brainiac.Design.Nodes;
32 | using ProjectHoshimi.Properties;
33 |
34 | namespace ProjectHoshimi.Nodes
35 | {
36 | public class ActionFollowFocus : Action
37 | {
38 | public ActionFollowFocus() : base(Resources.ActionFollowFocus, Resources.ActionFollowFocusDesc)
39 | {
40 | }
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/Project Hoshimi Design/Nodes/ActionInheritFocus.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | //using System;
29 | using System.Collections.Generic;
30 | using System.Text;
31 | using Brainiac.Design.Nodes;
32 | using ProjectHoshimi.Properties;
33 |
34 | namespace ProjectHoshimi.Nodes
35 | {
36 | public class ActionInheritFocus : Action
37 | {
38 | public ActionInheritFocus() : base(Resources.ActionInheritFocus, Resources.ActionInheritFocusDesc)
39 | {
40 | }
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/Project Hoshimi Design/Nodes/ActionMoveTillFocusIsInRange.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | //using System;
29 | using System.Collections.Generic;
30 | using System.Text;
31 | using Brainiac.Design.Nodes;
32 | using ProjectHoshimi.Properties;
33 |
34 | namespace ProjectHoshimi.Nodes
35 | {
36 | public class ActionMoveTillFocusIsInRange : Action
37 | {
38 | public ActionMoveTillFocusIsInRange() : base(Resources.ActionMoveTillFocusIsInRange, Resources.ActionMoveTillFocusIsInRangeDesc)
39 | {
40 | }
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/Project Hoshimi Design/Nodes/ActionTransferOxygenFromFocus.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | //using System;
29 | using System.Collections.Generic;
30 | using System.Text;
31 | using Brainiac.Design.Nodes;
32 | using ProjectHoshimi.Properties;
33 |
34 | namespace ProjectHoshimi.Nodes
35 | {
36 | public class ActionTransferOxygenFromFocus : Action
37 | {
38 | public ActionTransferOxygenFromFocus() : base(Resources.ActionTransferOxygenFromFocus, Resources.ActionTransferOxygenFromFocusDesc)
39 | {
40 | }
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/Project Hoshimi Design/Nodes/ActionTransferOxygenToFocus.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | //using System;
29 | using System.Collections.Generic;
30 | using System.Text;
31 | using Brainiac.Design.Nodes;
32 | using ProjectHoshimi.Properties;
33 |
34 | namespace ProjectHoshimi.Nodes
35 | {
36 | public class ActionTransferOxygenToFocus : Action
37 | {
38 | public ActionTransferOxygenToFocus() : base(Resources.ActionTransferOxygenToFocus, Resources.ActionTransferOxygenToFocusDesc)
39 | {
40 | }
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/Project Hoshimi Design/Nodes/ConditionCargoIsFull.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | using System;
29 | using System.Collections.Generic;
30 | using System.Text;
31 | using Brainiac.Design.Nodes;
32 | using ProjectHoshimi.Properties;
33 |
34 | namespace ProjectHoshimi.Nodes
35 | {
36 | public class ConditionCargoIsFull : ConditionConnectors
37 | {
38 | public ConditionCargoIsFull() : base(Resources.ConditionCargoIsFull, Resources.ConditionCargoIsFullDesc)
39 | {
40 | }
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/Project Hoshimi Design/Nodes/ConditionFocusIs.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | using System;
29 | using System.Collections.Generic;
30 | using System.Text;
31 | using Brainiac.Design.Nodes;
32 | using Brainiac.Design.Attributes;
33 | using ProjectHoshimi.Properties;
34 |
35 | namespace ProjectHoshimi.Nodes
36 | {
37 | public class ConditionFocusIs : ConditionConnectors
38 | {
39 | protected BuildUnitType _type;
40 |
41 | [DesignerEnum("ConditionFocusIsUnitType", "ConditionFocusIsUnitTypeDesc", "CategoryBasic", DesignerProperty.DisplayMode.Parameter, 0, DesignerProperty.DesignerFlags.NoFlags, null)]
42 | public BuildUnitType UnitType
43 | {
44 | get { return _type; }
45 | set { _type= value; }
46 | }
47 |
48 | public ConditionFocusIs() : base(Resources.ConditionFocusIs, Resources.ConditionFocusIsDesc)
49 | {
50 | }
51 |
52 | protected override void CloneProperties(Node newnode)
53 | {
54 | base.CloneProperties(newnode);
55 |
56 | ConditionFocusIs cond= (ConditionFocusIs)newnode;
57 | cond._type= _type;
58 | }
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/Project Hoshimi Design/Nodes/DecoratorLoop.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | using System;
29 | using System.Collections.Generic;
30 | using System.Text;
31 | using Brainiac.Design.Nodes;
32 | using Brainiac.Design.Attributes;
33 | using ProjectHoshimi.Properties;
34 |
35 | namespace ProjectHoshimi.Nodes
36 | {
37 | public class DecoratorLoop : Decorator
38 | {
39 | protected int _count;
40 |
41 | [DesignerInteger("DecoratorLoopCount", "DecoratorLoopCountDesc", "CategoryBasic", DesignerProperty.DisplayMode.Parameter, 0, DesignerProperty.DesignerFlags.NoFlags, -1, 10, 1, "UnitsCount")]
42 | public int Count
43 | {
44 | get { return _count; }
45 | set { _count= value; }
46 | }
47 |
48 | public DecoratorLoop() : base(Resources.DecoratorLoop, Resources.DecoratorLoopDesc)
49 | {
50 | }
51 |
52 | protected override void CloneProperties(Node newnode)
53 | {
54 | base.CloneProperties(newnode);
55 |
56 | DecoratorLoop dec= (DecoratorLoop)newnode;
57 | dec._count= _count;
58 | }
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/Project Hoshimi Design/Nodes/DecoratorNot.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | using System;
29 | using System.Collections.Generic;
30 | using System.Text;
31 | using Brainiac.Design.Nodes;
32 | using ProjectHoshimi.Properties;
33 |
34 | namespace ProjectHoshimi.Nodes
35 | {
36 | public class DecoratorNot : Decorator
37 | {
38 | public DecoratorNot() : base(Resources.DecoratorNot, Resources.DecoratorNotDesc)
39 | {
40 | }
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/Project Hoshimi Design/Nodes/DecoratorTrue.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | using System;
29 | using System.Collections.Generic;
30 | using System.Text;
31 | using Brainiac.Design.Nodes;
32 | using ProjectHoshimi.Properties;
33 |
34 | namespace ProjectHoshimi.Nodes
35 | {
36 | public class DecoratorTrue : Decorator
37 | {
38 | public DecoratorTrue() : base(Resources.DecoratorTrue, Resources.DecoratorTrueDesc)
39 | {
40 | }
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/Project Hoshimi Design/Nodes/Impulse.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | using System;
29 | using System.Collections.Generic;
30 | using System.Text;
31 | using ProjectHoshimi.Properties;
32 |
33 | namespace ProjectHoshimi.Nodes
34 | {
35 | public class Impulse : Brainiac.Design.Nodes.Impulse
36 | {
37 | public Impulse() : base(Resources.Impulse, Resources.ImpulseDesc)
38 | {
39 | }
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/Project Hoshimi Design/Nodes/SelectorLinear.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | using System;
29 | using System.Collections.Generic;
30 | using System.Text;
31 | using Brainiac.Design.Nodes;
32 | using ProjectHoshimi.Properties;
33 |
34 | namespace ProjectHoshimi.Nodes
35 | {
36 | public class SelectorLinear : Selector
37 | {
38 | public SelectorLinear() : base(Resources.SelectorLinear, Resources.SelectorLinearDesc)
39 | {
40 | }
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/Project Hoshimi Design/Nodes/SequenceLinear.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | using System;
29 | using System.Collections.Generic;
30 | using System.Text;
31 | using Brainiac.Design.Nodes;
32 | using ProjectHoshimi.Properties;
33 |
34 | namespace ProjectHoshimi.Nodes
35 | {
36 | public class SequenceLinear : Sequence
37 | {
38 | public SequenceLinear() : base(Resources.SequenceLinear, Resources.SequenceLinearDesc)
39 | {
40 | }
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/Project Hoshimi Design/Project Hoshimi Design.csproj.vspscc:
--------------------------------------------------------------------------------
1 | ""
2 | {
3 | "FILE_VERSION" = "9237"
4 | "ENLISTMENT_CHOICE" = "NEVER"
5 | "PROJECT_FILE_RELATIVE_PATH" = ""
6 | "NUMBER_OF_EXCLUDED_FILES" = "0"
7 | "ORIGINAL_PROJECT_FILE_PATH" = ""
8 | "NUMBER_OF_NESTED_PROJECTS" = "0"
9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER"
10 | }
11 |
--------------------------------------------------------------------------------
/Project Hoshimi Design/Resources/Build Needle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/Project Hoshimi Design/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | Brainiac-Designer
2 | =================
3 |
4 | Fork from http://brainiac.codeplex.com/releases/view/24156
5 |
6 | Brainiac Designer is an open-source visual behaviour tree editor. It allows you
7 | to build behaviour trees by using simply drag&drop. The editor supports plugins,
8 | exporters and stores behaviours as XML files.
9 |
--------------------------------------------------------------------------------
/Vampire/Actions/Attack.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | //using System;
29 | using System.Collections.Generic;
30 | using System.Text;
31 | using Brainiac.Design.Nodes;
32 | using Vampire.Properties;
33 |
34 | namespace Vampire.Actions
35 | {
36 | public class Attack : Action
37 | {
38 | public Attack()
39 | : base(Resources.Attack, Resources.Attack)
40 | {
41 | }
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/Vampire/Actions/ChooseFarthestSkill.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | //using System;
29 | using System.Collections.Generic;
30 | using System.Text;
31 | using Brainiac.Design.Nodes;
32 | using Vampire.Properties;
33 |
34 | namespace Vampire.Actions
35 | {
36 | public class ChooseFarthestSkill: Action
37 | {
38 | public ChooseFarthestSkill()
39 | : base(Resources.ChooseFarthestSkill, Resources.ChooseFarthestSkill)
40 | {
41 | }
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/Vampire/Actions/ChooseRandomSkill.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | //using System;
29 | using System.Collections.Generic;
30 | using System.Text;
31 | using Brainiac.Design.Nodes;
32 | using Vampire.Properties;
33 |
34 | namespace Vampire.Actions
35 | {
36 | public class ChooseRandomSkill: Action
37 | {
38 | public ChooseRandomSkill()
39 | : base(Resources.ChooseRandomSkill, Resources.ChooseRandomSkill)
40 | {
41 | }
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/Vampire/Actions/ChooseTargetInView.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | //using System;
29 | using System.Collections.Generic;
30 | using System.Text;
31 | using Brainiac.Design.Nodes;
32 | using Vampire.Properties;
33 |
34 | namespace Vampire.Actions
35 | {
36 | public class ChooseTargetInView: Action
37 | {
38 | public ChooseTargetInView()
39 | : base(Resources.ChooseTargetInView, Resources.ChooseTargetInView)
40 | {
41 | }
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/Vampire/Actions/ChooseTargetWhoAttack.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | //using System;
29 | using System.Collections.Generic;
30 | using System.Text;
31 | using Brainiac.Design.Nodes;
32 | using Vampire.Properties;
33 |
34 | namespace Vampire.Actions
35 | {
36 | public class ChooseTargetWhoAttack: Action
37 | {
38 | public ChooseTargetWhoAttack()
39 | : base(Resources.ChooseTargetWhoAttack, Resources.ChooseTargetWhoAttack)
40 | {
41 | }
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/Vampire/Actions/EndFight.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | //using System;
29 | using System.Collections.Generic;
30 | using System.Text;
31 | using Brainiac.Design.Nodes;
32 | using Vampire.Properties;
33 |
34 | namespace Vampire.Actions
35 | {
36 | public class EndFight : Action
37 | {
38 | public EndFight()
39 | : base(Resources.EndFight, Resources.EndFight)
40 | {
41 | }
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/Vampire/Actions/MoveToAttackRange.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | //using System;
29 | using System.Collections.Generic;
30 | using System.Text;
31 | using Brainiac.Design.Nodes;
32 | using Vampire.Properties;
33 |
34 | namespace Vampire.Actions
35 | {
36 | public class MoveToAttackRange : Action
37 | {
38 | public MoveToAttackRange()
39 | : base(Resources.MoveToAttackRange, Resources.MoveToAttackRange)
40 | {
41 | }
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/Vampire/Composites/Parallel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | using System;
29 | using System.Collections.Generic;
30 | using System.Text;
31 | using Brainiac.Design.Nodes;
32 | using Vampire.Properties;
33 |
34 | namespace Vampire.Composites
35 | {
36 | public class Parallel : Brainiac.Design.Nodes.Parallel
37 | {
38 | public Parallel() : base(Resources.Parallel, Resources.ParallelDesc)
39 | {
40 | }
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/Vampire/Composites/Selector.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | using System;
29 | using System.Collections.Generic;
30 | using System.Text;
31 | using Brainiac.Design.Nodes;
32 | using Vampire.Properties;
33 |
34 | namespace Vampire.Composites
35 | {
36 | public class Selector : Brainiac.Design.Nodes.Selector
37 | {
38 | public Selector() : base(Resources.Selector, Resources.SelectorDesc)
39 | {
40 | }
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/Vampire/Composites/Sequence.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | using System;
29 | using System.Collections.Generic;
30 | using System.Text;
31 | using Brainiac.Design.Nodes;
32 | using Vampire.Properties;
33 |
34 | namespace Vampire.Composites
35 | {
36 | public class Sequence : Brainiac.Design.Nodes.Sequence
37 | {
38 | public Sequence() : base(Resources.Sequence, Resources.SequenceDesc)
39 | {
40 | }
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/Vampire/Conditions/HasRoleInView.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | using System;
29 | using System.Collections.Generic;
30 | using System.Text;
31 | using Brainiac.Design.Nodes;
32 | using Vampire.Properties;
33 |
34 | namespace Vampire.Conditions
35 | {
36 | public class HasRoleInView : ConditionConnectors
37 | {
38 | public HasRoleInView()
39 | : base(Resources.HasRoleInView, Resources.HasRoleInView)
40 | {
41 | }
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/Vampire/Conditions/HasTarget.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | using System;
29 | using System.Collections.Generic;
30 | using System.Text;
31 | using Brainiac.Design.Nodes;
32 | using Vampire.Properties;
33 |
34 | namespace Vampire.Conditions
35 | {
36 | public class HasTarget : ConditionConnectors
37 | {
38 | public HasTarget()
39 | : base(Resources.HasTarget, Resources.HasTarget)
40 | {
41 | }
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/Vampire/Conditions/IsAttacked.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | using System;
29 | using System.Collections.Generic;
30 | using System.Text;
31 | using Brainiac.Design.Nodes;
32 | using Vampire.Properties;
33 |
34 | namespace Vampire.Conditions
35 | {
36 | public class IsAttacked : ConditionConnectors
37 | {
38 | public IsAttacked()
39 | : base(Resources.IsAttacked, Resources.IsAttacked)
40 | {
41 | }
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/Vampire/Decorators/Loop.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | using System;
29 | using System.Collections.Generic;
30 | using System.Text;
31 | using Brainiac.Design.Nodes;
32 | using Brainiac.Design.Attributes;
33 | using Vampire.Properties;
34 |
35 | namespace Vampire.Decorators
36 | {
37 | public class Loop : Decorator
38 | {
39 | protected int _count;
40 |
41 | [DesignerInteger("LoopCount", "LoopCountDesc", "CategoryBasic", DesignerProperty.DisplayMode.Parameter, 0, DesignerProperty.DesignerFlags.NoFlags, -1, 10, 1, "UnitsCount")]
42 | public int Count
43 | {
44 | get { return _count; }
45 | set { _count= value; }
46 | }
47 |
48 | public Loop()
49 | : base(Resources.Loop, Resources.LoopDesc)
50 | {
51 | }
52 |
53 | protected override void CloneProperties(Node newnode)
54 | {
55 | base.CloneProperties(newnode);
56 |
57 | Loop dec = (Loop)newnode;
58 | dec._count= _count;
59 | }
60 | }
61 | }
62 |
--------------------------------------------------------------------------------
/Vampire/Decorators/Not.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | using System;
29 | using System.Collections.Generic;
30 | using System.Text;
31 | using Brainiac.Design.Nodes;
32 | using Vampire.Properties;
33 |
34 | namespace Vampire.Decorators
35 | {
36 | public class Not : Decorator
37 | {
38 | public Not()
39 | : base(Resources.Not, Resources.NotDesc)
40 | {
41 | }
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/Vampire/Decorators/Successful.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | using System;
29 | using System.Collections.Generic;
30 | using System.Text;
31 | using Brainiac.Design.Nodes;
32 | using Vampire.Properties;
33 |
34 | namespace Vampire.Decorators
35 | {
36 | public class Successful : Decorator
37 | {
38 | public Successful()
39 | : base(Resources.Successful, Resources.SuccessfulDesc)
40 | {
41 | }
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/Vampire/Enums.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | using System;
29 | using System.Collections.Generic;
30 | using System.Text;
31 |
32 | namespace Vampire
33 | {
34 | public enum UnitType { BotAI, Needle, Transporter }
35 | public enum EntityType { BotAI, HoshimiPointWithNeedle, HoshimiPointWithoutNeedle, Needle, OXY, Transporter }
36 | public enum BuildUnitType { Needle, Transporter }
37 | }
38 |
--------------------------------------------------------------------------------
/Vampire/Events/FocusDestroyed.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | using System;
29 | using System.Collections.Generic;
30 | using System.Text;
31 | using Brainiac.Design;
32 | using Brainiac.Design.Attributes;
33 | using Vampire.Properties;
34 |
35 | namespace Vampire.Events
36 | {
37 | public class FocusDestroyed : Brainiac.Design.Events.Event
38 | {
39 | protected UnitType _type;
40 |
41 | [DesignerEnum("EventFocusDestroyedType", "EventFocusDestroyedTypeDesc", "CategoryBasic", DesignerProperty.DisplayMode.Parameter, 0, DesignerProperty.DesignerFlags.NoFlags, null)]
42 | public UnitType UnitType
43 | {
44 | get { return _type; }
45 | set { _type= value; }
46 | }
47 |
48 | public FocusDestroyed(Brainiac.Design.Nodes.Node node) : base(node, Resources.EventFocusDestroyed, Resources.EventFocusDestroyedDesc)
49 | {
50 | }
51 |
52 | protected override void CloneProperties(Brainiac.Design.Events.Event newevent)
53 | {
54 | base.CloneProperties(newevent);
55 |
56 | FocusDestroyed evnt= (FocusDestroyed)newevent;
57 | evnt._type= _type;
58 | }
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/Vampire/Events/UnitBuilt.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | using System;
29 | using System.Collections.Generic;
30 | using System.Text;
31 | using Brainiac.Design;
32 | using Brainiac.Design.Attributes;
33 | using Vampire.Properties;
34 |
35 | namespace Vampire.Events
36 | {
37 | public class UnitBuilt : Brainiac.Design.Events.Event
38 | {
39 | protected BuildUnitType _type;
40 |
41 | [DesignerEnum("EventUnitBuiltType", "EventUnitBuiltTypeDesc", "CategoryBasic", DesignerProperty.DisplayMode.Parameter, 0, DesignerProperty.DesignerFlags.NoFlags, null)]
42 | public BuildUnitType UnitType
43 | {
44 | get { return _type; }
45 | set { _type= value; }
46 | }
47 |
48 | public UnitBuilt(Brainiac.Design.Nodes.Node node) : base(node, Resources.EventUnitBuilt, Resources.EventUnitBuiltDesc)
49 | {
50 | }
51 |
52 | protected override void CloneProperties(Brainiac.Design.Events.Event newevent)
53 | {
54 | base.CloneProperties(newevent);
55 |
56 | UnitBuilt evnt= (UnitBuilt)newevent;
57 | evnt._type= _type;
58 | }
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/Vampire/Events/UnitDestroyed.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | using System;
29 | using System.Collections.Generic;
30 | using System.Text;
31 | using Brainiac.Design;
32 | using Brainiac.Design.Attributes;
33 | using Vampire.Properties;
34 |
35 | namespace Vampire.Events
36 | {
37 | public class UnitDestroyed : Brainiac.Design.Events.Event
38 | {
39 | protected UnitType _type;
40 |
41 | [DesignerEnum("EventUnitDestroyedType", "EventUnitDestroyedTypeDesc", "CategoryBasic", DesignerProperty.DisplayMode.Parameter, 0, DesignerProperty.DesignerFlags.NoFlags, null)]
42 | public UnitType UnitType
43 | {
44 | get { return _type; }
45 | set { _type= value; }
46 | }
47 |
48 | public UnitDestroyed(Brainiac.Design.Nodes.Node node) : base(node, Resources.EventUnitDestroyed, Resources.EventUnitDestroyedDesc)
49 | {
50 | }
51 |
52 | protected override void CloneProperties(Brainiac.Design.Events.Event newevent)
53 | {
54 | base.CloneProperties(newevent);
55 |
56 | UnitDestroyed evnt= (UnitDestroyed)newevent;
57 | evnt._type= _type;
58 | }
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/Vampire/Impulses/Impulse.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////////////////////////////////////
2 | // Copyright (c) 2009, Daniel Kollmann
3 | // All rights reserved.
4 | //
5 | // Redistribution and use in source and binary forms, with or without modification, are permitted
6 | // provided that the following conditions are met:
7 | //
8 | // - Redistributions of source code must retain the above copyright notice, this list of conditions
9 | // and the following disclaimer.
10 | //
11 | // - Redistributions in binary form must reproduce the above copyright notice, this list of
12 | // conditions and the following disclaimer in the documentation and/or other materials provided
13 | // with the distribution.
14 | //
15 | // - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
16 | // or promote products derived from this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | ////////////////////////////////////////////////////////////////////////////////////////////////////
27 |
28 | using System;
29 | using System.Collections.Generic;
30 | using System.Text;
31 | using Vampire.Properties;
32 |
33 | namespace Vampire.Impulses
34 | {
35 | public class Impulse : Brainiac.Design.Nodes.Impulse
36 | {
37 | public Impulse() : base(Resources.Impulse, Resources.ImpulseDesc)
38 | {
39 | }
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/Vampire/Resources/Build Needle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/Vampire/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/license.txt:
--------------------------------------------------------------------------------
1 | Copyright (c) 2008, Daniel Kollmann
2 | All rights reserved.
3 |
4 | Redistribution and use in source and binary forms, with or without modification, are permitted
5 | provided that the following conditions are met:
6 |
7 | - Redistributions of source code must retain the above copyright notice, this list of conditions
8 | and the following disclaimer.
9 |
10 | - Redistributions in binary form must reproduce the above copyright notice, this list of
11 | conditions and the following disclaimer in the documentation and/or other materials provided
12 | with the distribution.
13 |
14 | - Neither the name of Daniel Kollmann nor the names of its contributors may be used to endorse
15 | or promote products derived from this software without specific prior written permission.
16 |
17 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
18 | IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
19 | FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
20 | CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
23 | WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
24 | WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
--------------------------------------------------------------------------------
/out/behaviors/Blank Plugin/Blank Behavior.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/out/behaviors/Project Hoshimi/Bot AI/Bot AI.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/out/behaviors/Project Hoshimi/Bot AI/Build Needle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/out/behaviors/Project Hoshimi/Bot AI/Build Transporter.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/out/behaviors/Project Hoshimi/Bot Transporter/Bot Transporter.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/out/behaviors/Project Hoshimi/Bot Transporter/Collect Oxygen.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/out/behaviors/Project Hoshimi/Bot Transporter/Move To Next Available Needle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/out/behaviors/Project Hoshimi/Bot Transporter/Supply Needle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/out/debug_workspaces.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | DesignMode.dll
5 |
6 |
7 | ProjectHoshimi.dll
8 |
9 |
10 | BlankPlugin.dll
11 |
12 |
13 | Vampire.dll
14 |
15 |
16 |
--------------------------------------------------------------------------------
/out/license.txt:
--------------------------------------------------------------------------------
1 | The MIT License
2 |
3 | Copyright (c) 2007 Weifen Luo (email: weifenluo@yahoo.com)
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6 |
7 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8 |
9 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
10 |
--------------------------------------------------------------------------------
/out/license_dockpanel.txt:
--------------------------------------------------------------------------------
1 | The MIT License
2 |
3 | Copyright (c) 2007 Weifen Luo (email: weifenluo@yahoo.com)
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6 |
7 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8 |
9 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
10 |
--------------------------------------------------------------------------------
/out/workspaces.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ProjectHoshimi.dll
5 |
6 |
7 | DesignMode.dll
8 |
9 |
--------------------------------------------------------------------------------