Skip to content
Snippets Groups Projects
Commit 006bef67 authored by Reeves, David E's avatar Reeves, David E
Browse files

* execute orders and primitive orders

parent 2b5fc54c
No related branches found
No related tags found
No related merge requests found
No preview for this file type
...@@ -135,6 +135,9 @@ ...@@ -135,6 +135,9 @@
<ItemGroup> <ItemGroup>
<EmbeddedResource Include="res\set_var.snp" /> <EmbeddedResource Include="res\set_var.snp" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<EmbeddedResource Include="res\add_primitive_order.snp" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets. Other similar extension points exist, see Microsoft.Common.targets.
......
add_primitive_order|Create a primitive order and add it to a list add_primitive_order|Create a primitive order and add it to a list
import cxxi.model.behavior.OrderUtilities as OrderUtilities import cxxi.model.behavior.OrderUtilities as OrderUtilities
# this action needs some work it's a place holder for now # this action needs some work it's a place holder for now
OrderUtilities.call_goes_here OrderUtilities.%CREATE_PRIMITIVE_ORDER
...@@ -5,7 +5,4 @@ import cxxi.model.behavior.OrderUtilities as OrderUtilities ...@@ -5,7 +5,4 @@ import cxxi.model.behavior.OrderUtilities as OrderUtilities
prims = Vector() prims = Vector()
ordr = orders.createOrder("HTN Plan Auto Generated", 0.0, prims) ordr = orders.createOrder("HTN Plan Auto Generated", 0.0, prims)
# pick one method # pick one method
orders.addOrder(ordr) orders.%EXECUTE_ORDER(ordr)
orders.insertOrder(ordr)
orders.preemptCurrentOrder(ordr)
orders.preemptAllOrders(ordr)
...@@ -236,10 +236,24 @@ namespace ScintillaPythonControl ...@@ -236,10 +236,24 @@ namespace ScintillaPythonControl
{ {
switch (selTxt) switch (selTxt)
{ {
case "CREATE_PRIMITIVE_ORDER":
res = CodeCompleteTools.GetPrimitiveOrderOptions();
keywords = (string[])res[0];
keywordsHelp = (string[])res[1];
break;
case "EXECUTE_ORDER":
res = CodeCompleteTools.GetExecuteOrderOptions();
keywords = (string[])res[0];
keywordsHelp = (string[])res[1];
break;
case "IMPACT_LOCATION":
case "LOCATION": case "LOCATION":
keywords = new string[] { "Location" }; keywords = new string[] { "Location" };
keywordsHelp = new string[] { "Location object" }; keywordsHelp = new string[] { "Location object" };
break; break;
case "BOOL_TO_CMDR":
case "BOOL_STOP":
case "BOOL_FIXED":
case "CLOCKWISE_BOOL": case "CLOCKWISE_BOOL":
case "CURRENT_BOOL": case "CURRENT_BOOL":
case "APPEND_ENTITY_NAME_BOOL": case "APPEND_ENTITY_NAME_BOOL":
...@@ -294,11 +308,17 @@ namespace ScintillaPythonControl ...@@ -294,11 +308,17 @@ namespace ScintillaPythonControl
keywords = new string[] { "string" }; keywords = new string[] { "string" };
keywordsHelp = new string[] { "A string" }; keywordsHelp = new string[] { "A string" };
break; break;
case "LAT":
case "LON":
case "ELEVATION":
case "RADIUS": case "RADIUS":
case "DEGREE_STEP": case "DEGREE_STEP":
case "ELEVATION":
case "DELAY": case "DELAY":
case "DIRECTION": case "DIRECTION":
case "DISTANCE":
case "SECONDS":
case "HEIGHT":
case "ALTITUDE":
case "FIELDOFREGARD_ANGLE": case "FIELDOFREGARD_ANGLE":
case "SPEED": case "SPEED":
keywords = new string[] { "Double" }; keywords = new string[] { "Double" };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment