| Package | com.whirled.contrib |
| Class | public class RemoteEntity |
var remote :RemoteEntity = new RemoteEntity(_ctrl, someTargetId);
if (remote.get("apples") < remote.get("oranges")) {
trace("Giving a couple dozen apples to " + remote.getName());
remote.call("bobForApples", 24);
}
| Property | Defined by | ||
|---|---|---|---|
| _ctrl : EntityControl Your code's EntityControl.
| RemoteEntity | ||
| _entityId : String The unique identifier of this entity, or null if referring to the self.
| RemoteEntity | ||
| Method | Defined by | ||
|---|---|---|---|
|
RemoteEntity(ctrl:EntityControl, entityId:String = null)
| RemoteEntity | ||
|
call(key:String, ... args):*
Request a Function from the entity and call it.
| RemoteEntity | ||
|
get(key:String):Object
Request a property from the entity.
| RemoteEntity | ||
|
getDimensions():Array
| RemoteEntity | ||
|
getHotspot():Array
| RemoteEntity | ||
|
getLogicalLocation():Array
| RemoteEntity | ||
|
getMemberId():int
| RemoteEntity | ||
|
getMoveSpeed():Number
| RemoteEntity | ||
|
getName():String
| RemoteEntity | ||
|
getOrientation():Number
| RemoteEntity | ||
|
getPixelLocation():Array
| RemoteEntity | ||
|
getType():String
| RemoteEntity | ||
| _ctrl | property |
protected var _ctrl:EntityControlYour code's EntityControl.
| _entityId | property |
protected var _entityId:StringThe unique identifier of this entity, or null if referring to the self.
| RemoteEntity | () | constructor |
public function RemoteEntity(ctrl:EntityControl, entityId:String = null)Parameters
ctrl:EntityControl |
|
entityId:String (default = null) |
| call | () | method |
public function call(key:String, ... args):*Request a Function from the entity and call it.
Parameterskey:String |
|
... args |
* — The result of the function call or undefined if the function is unavailable.
|
| get | () | method |
public function get(key:String):ObjectRequest a property from the entity.
Parameterskey:String |
Object |
| getDimensions | () | method |
public function getDimensions():ArrayReturns
Array |
See also
| getHotspot | () | method |
public function getHotspot():ArrayReturns
Array |
See also
| getLogicalLocation | () | method |
public function getLogicalLocation():ArrayReturns
Array |
See also
| getMemberId | () | method |
public function getMemberId():intReturns
int |
See also
| getMoveSpeed | () | method |
public function getMoveSpeed():NumberReturns
Number |
See also
| getName | () | method |
public function getName():StringReturns
String |
See also
| getOrientation | () | method |
public function getOrientation():NumberReturns
Number |
See also
| getPixelLocation | () | method |
public function getPixelLocation():ArrayReturns
Array |
See also
| getType | () | method |
public function getType():StringReturns
String |
See also