Package | org.iotashan.nabaztagAPI |
Class | public class NabaztagEarsCommand |
Inheritance | NabaztagEarsCommand ![]() |
Property | Defined by | ||
---|---|---|---|
angle : Number
Angle to move the ear to.
| NabaztagEarsCommand | ||
![]() | command : String
String that determines what type of command this is.
| NabaztagChoreographyCommand | |
rotation : Number
Direction to move the ear in to get to the angle.
| NabaztagEarsCommand | ||
![]() | startTime : Number
Starting time of this command, in "beats" specified by the tempo.
| NabaztagChoreographyCommand | |
targetEar : Number
Target ear for this command.
| NabaztagEarsCommand |
Method | Defined by | ||
---|---|---|---|
NabaztagEarsCommand(startTime:Number, targetEar:Number = 0, angle:Number = 0, rotation:Number = 0)
Constructor Method.
| NabaztagEarsCommand | ||
getCommand():String
Returns this command in the proper URL format
for use with the Nabaztag API.
| NabaztagEarsCommand |
Constant | Defined by | ||
---|---|---|---|
EARS_COMMAND : String = "motor"
The string value to be used for the command
| NabaztagEarsCommand | ||
LEFT_EAR : Number = 1 | NabaztagEarsCommand | ||
RIGHT_EAR : Number = 0 | NabaztagEarsCommand | ||
ROTATE_BACKWARD : Number = 1 | NabaztagEarsCommand | ||
ROTATE_FORWARD : Number = 0 | NabaztagEarsCommand |
angle | property |
angle:Number
[read-write]Angle to move the ear to. An angle of 0 is straight up, an angle of 180 would be "flat" down.
Implementation public function get angle():Number
public function set angle(value:Number):void
rotation | property |
rotation:Number
[read-write]Direction to move the ear in to get to the angle.
Implementation public function get rotation():Number
public function set rotation(value:Number):void
targetEar | property |
targetEar:Number
[read-write]Target ear for this command.
Implementation public function get targetEar():Number
public function set targetEar(value:Number):void
NabaztagEarsCommand | () | constructor |
public function NabaztagEarsCommand(startTime:Number, targetEar:Number = 0, angle:Number = 0, rotation:Number = 0)
Constructor Method.
ParametersstartTime:Number |
|
targetEar:Number (default = 0 )
|
|
angle:Number (default = 0 )
|
|
rotation:Number (default = 0 )
|
getCommand | () | method |
public override function getCommand():String
Returns this command in the proper URL format for use with the Nabaztag API.
ReturnsString |
EARS_COMMAND | constant |
public const EARS_COMMAND:String = "motor"
The string value to be used for the command
LEFT_EAR | constant |
public const LEFT_EAR:Number = 1
RIGHT_EAR | constant |
public const RIGHT_EAR:Number = 0
ROTATE_BACKWARD | constant |
public const ROTATE_BACKWARD:Number = 1
ROTATE_FORWARD | constant |
public const ROTATE_FORWARD:Number = 0