Nocturna
Preparing search index...
states/MultiSceneStates
DeadState
Class DeadState
DeadState handles the state when the local player is dead.
Sets up the dead camera.
Waits for the end of the game (win/lose) based on remaining players.
Hierarchy (
View Summary
)
InGameState
DeadState
Index
Constructors
constructor
Properties
game
Scene
Methods
enter
exit
on
Connection
Established
on
Participant
Joined
on
Participant
Left
on
Peer
Message
on
Room
Created
on
Room
Creation
Failed
on
Room
Joined
on
Room
Join
Failed
render
update
Constructors
constructor
new
DeadState
(
gameScene
:
MultiScene
)
:
DeadState
Parameters
gameScene
:
MultiScene
Returns
DeadState
Properties
Protected
game
Scene
gameScene
:
MultiScene
Methods
enter
enter
()
:
void
Returns
void
exit
exit
()
:
void
Returns
void
on
Connection
Established
onConnectionEstablished
(
_
:
string
)
:
void
Parameters
_
:
string
Returns
void
on
Participant
Joined
onParticipantJoined
(
_
:
string
)
:
void
Parameters
_
:
string
Returns
void
on
Participant
Left
onParticipantLeft
(
id
:
string
)
:
void
Parameters
id
:
string
Returns
void
on
Peer
Message
onPeerMessage
(
participantId
:
string
,
action
:
string
,
data
:
any
)
:
void
Parameters
participantId
:
string
action
:
string
data
:
any
Returns
void
on
Room
Created
onRoomCreated
(
_
:
string
)
:
void
Parameters
_
:
string
Returns
void
on
Room
Creation
Failed
onRoomCreationFailed
(
_
:
string
)
:
void
Parameters
_
:
string
Returns
void
on
Room
Joined
onRoomJoined
(
_
:
string
,
__
:
string
,
___
:
string
[]
)
:
void
Parameters
_
:
string
__
:
string
___
:
string
[]
Returns
void
on
Room
Join
Failed
onRoomJoinFailed
(
_
:
string
)
:
void
Parameters
_
:
string
Returns
void
render
render
()
:
void
Returns
void
update
update
(
dt
:
number
,
input
:
CharacterInput
)
:
AbstractGameSceneState
Parameters
dt
:
number
input
:
CharacterInput
Returns
AbstractGameSceneState
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
game
Scene
Methods
enter
exit
on
Connection
Established
on
Participant
Joined
on
Participant
Left
on
Peer
Message
on
Room
Created
on
Room
Creation
Failed
on
Room
Joined
on
Room
Join
Failed
render
update
Nocturna
Loading...
DeadState handles the state when the local player is dead.