Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
component:drone [2015/05/07 19:16]
sulljason Added better link to robot API and added inline link to item robots.
component:drone [2018/09/27 01:59]
payonel
Line 3: Line 3:
  
 Provided by [[item:​drone|Drones]]. Provided by [[item:​drone|Drones]].
 +
 +Drones are mobile open computer machines, similar to [[block:​robot|robots]],​ yet more mobile yet more limited. For example, they lack an option for a screen or harddrive.
  
 Component name: `drone`.  ​ Component name: `drone`.  ​
-Callbacks: 
  
-- `getStatusText():​string` ​  +===Base Methods=== 
-  Get the status text currently being displayed in the GUI. +{{page>​component:agent#Drone Component API&​noheader&​nofooter}} 
-- `setStatusText(value:string):​string`  ​ +{{page>​component:agent#Agent Trait API&​noheader&​nofooter}} 
-  Set the status text to display in the GUI, returns new value. + 
-- `move(dx:number, dy:number, dz:​number)`  ​ +===Internal Inventory Methods=== 
-  ​Change the target position by the specified offset. +{{page>​component:agent#​InventoryController Trait API&​noheader&​nofooter}} 
-- `getOffset():​number`  ​ +{{page>​component:agent#​TankControl Trait API&​noheader&​nofooter}}
-  Get the current distance to the target position. +
-- `getVelocity():number`  ​ +
-  Get the current velocity in m/s. +
-- `getMaxVelocity():number` ​  +
-  Get the maximum velocity, in m/s. +
-- `getAcceleration():​number` ​  +
-  Get the currently set acceleration. +
-- `setAcceleration(value:​number):​number` ​  +
-  Try to set the acceleration to the specified value and return the new acceleration. +
-- `getLightColor():​number` ​  +
-  Gets the current color of the flap lights as an integer encoded RGB value (0xRRGGBB). +
-- `setLightColor(value:​number):​number` ​  +
-  Sets the color of the flap lights to the specified integer encoded RGB value (0xRRGGBB).+
  
-They also share most world interaction methods with [[block:robot|robots]],​ e.g. `detect`, `suck`, `drop`, `drain`, `fill` and so on.  [[api:robot|Robot ​API]] +===External Inventory Methods=== 
-**TODO**Insert those here.+{{page>​component:agent#​WorldControl Trait API&​noheader&​nofooter}} 
 +{{page>​component:agent#​TankWorldControl Trait API&​noheader&​nofooter}} 
 +{{page>​component:agent#​InventoryWorldController trait API&​noheader&​nofooter}}
  
 +Contents
 ---- ----
 +{{page>​component:​contents&​noheader&​noeditbutton&​nouser&​nofooter}}
  
-{{page>​component:​contents&​noheader&​noeditbutton&​nouser&​nofooter}} ​