SeatingSubControl: Difference between revisions
Jump to navigation
Jump to search
(Created page with "The '''[http://www.whirled.com/code/asdocs/com/whirled/game/SeatingSubControl.html SeatingSubControl]''' is a subcontrol used by seated multiplayer games to retrieve the...") |
Whirled vox (talk | contribs) m (Text replacement - "<" to "<") |
||
| Line 6: | Line 6: | ||
You should always access SeatingSubControl via the GameControl, don't try to instantiate the object directly. | You should always access SeatingSubControl via the GameControl, don't try to instantiate the object directly. | ||
<actionscript> | |||
public class MyGame extends Sprite { | public class MyGame extends Sprite { | ||
public MyGame () { | public MyGame () { | ||
| Line 28: | Line 28: | ||
} | } | ||
</actionscript> | |||
== Other Links == | == Other Links == | ||
Revision as of 18:38, 31 August 2018
The SeatingSubControl is a subcontrol used by seated multiplayer games to retrieve the status of the players in the seated game.
Initialization
You should always access SeatingSubControl via the GameControl, don't try to instantiate the object directly.
<actionscript> public class MyGame extends Sprite {
public MyGame () {
_ctrl = new GameControl(this);
//you can either access the SeatingSubControl via a handle
//like this
_seating = _ctrl.game.seating;
_myPos = _seating.getMyPosition();
//or like this directly via the control object.
_myPos = _ctrl.game.seating.getMyPosition();
}
protected _ctrl :GameControl; protected _seating : SeatingSubControl; protected _myPos: int;
} </actionscript>
Other Links
This article is a stub. You can help the wiki by expanding it.