PlayerSettings
| Kind | class |
| Package | backend |
| Full name | backend.PlayerSettings |
| Source | source/backend/PlayerSettings.hx |
import props.Player; import ui.DeviceManager;
Public fields
| Name | Type | Static | Default | Notes |
|---|---|---|---|---|
numPlayers | — | yes | 0 | property (default, null) |
numAvatars | — | yes | 0 | property (default, null) |
player1 | PlayerSettings | yes | — | property (default, null) |
player2 | PlayerSettings | yes | — | property (default, null) |
onAvatarAdd | — | yes | new FlxTypedSignal<PlayerSettings->Void>() | final · #if haxe >= "4.0.0" |
onAvatarRemove | — | yes | new FlxTypedSignal<PlayerSettings->Void>() | final · #if haxe >= "4.0.0" |
onAvatarAdd | — | yes | new FlxTypedSignal<PlayerSettings->Void>() | #if !(haxe >= "4.0.0") |
onAvatarRemove | — | yes | new FlxTypedSignal<PlayerSettings->Void>() | #if !(haxe >= "4.0.0") |
id | Int | no | — | property (default, null) |
controls | Controls | no | — | final · #if haxe >= "4.0.0" |
controls | Controls | no | — | #if !(haxe >= "4.0.0") |
Public methods
new (constructor)
function new(id, scheme)
| Parameter | Type | Default |
|---|---|---|
id | Dynamic | — |
scheme | Dynamic | — |
setKeyboardScheme
function setKeyboardScheme(scheme)
| Parameter | Type | Default |
|---|---|---|
scheme | Dynamic | — |
addAvatar
static function addAvatar(avatar:Player):PlayerSettings
| Parameter | Type | Default |
|---|---|---|
avatar | Player | — |
removeAvatar
static function removeAvatar(avatar:Player):Void
| Parameter | Type | Default |
|---|---|---|
avatar | Player | — |
init
static function init():Void
reset
static function reset()