NetActors()

new NetActors()

a wrapper class for an array of net actors

Methods

actor(netActorId) → {Game_Actor}

get the game actor of a net actor id

Parameters:
Name Type Description
netActorId *

the net actor id to find

Returns:
Game_Actor

baseActor(netActorId) → {Game_Actor}

get the game actor of a net actor

Parameters:
Name Type Description
netActorId *

the if of the base Actor to find

Returns:
Game_Actor

createNewNetActor(baseActorId)

perform a deep copy of the dataActor and create a new net actor from this

Parameters:
Name Type Description
baseActorId *

the id of the base game actor to copy data from

dataActor(netActorId) → {Game_Actor}

get the game actor of a net actor

Parameters:
Name Type Description
netActorId *

the if of the data Actor to find

Returns:
Game_Actor

removeNetActor(netActorId)

remove a net actor from $netActors and remove associated dataActor

Parameters:
Name Type Description
netActorId *

the id of the net actor to remove from the array of net actors

removeNetDataActor(netActorId)

remove the data actor from $dataActors

Parameters:
Name Type Description
netActorId *

the id of the net actor