Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Code Block
themeEclipse
languagejavascript
titleMove a droid to where I first started out on this mapAllow droid to attack stuff while it moves somewhere
linenumberstrue
// scout to specific location (assuming droid can get there)
orderDroidLoc(myDroid,DORDER_SCOUT,startPositions[me].x,startPositions[me].y);
 
// scout to specific object (assuming droid can get there)
orderDroidObj(myDroid,DORDER_SCOUT,gameObject);

...

  • droidCanReach() – determine if a droid can reach a specific location
  • orderDroidLoc() – order a droid to move to, or do something at, a specific location
  • orderDroidObj() – order droid to move to, or do something with, a specific game object
  • .order – list of all order constants
  • startPositions[] – an array of player starting positions