new Data_Actor_Wrapper()
A class that wraps data actor information allowing easy creation of data actors.
Members
-
_data :MATTIE.actorAPI.Data_Actor
-
the actual data actors data for this wrapper
-
skills
-
an array of skills to teach to the actor once created
Methods
-
buildDataActorFromEventAndTroop(gameEvent, gameTroop, shouldSet,)
-
create a data actor from game event and game troop
Parameters:
Name Type Description gameEvent
rm.types.Event gameTroop
rm.types.Troop shouldSet,
boolean whether to set this._data to the result
-
buildDataActorFromExistingActor(actor, shouldSet,) → {MATTIE.actorAPI.Data_Actor}
-
Parameters:
Name Type Description actor
rm.types.Actor shouldSet,
boolean whether to set this._data to the result
-
buildDefaultDataActor(shouldSet,) → {MATTIE.actorAPI.Data_Actor}
-
Parameters:
Name Type Description shouldSet,
boolean whether to set this._data to the result
-
create()
-
add this dataActor to the list of $dataActors
-
getDefaultEquip()
-
gets the equip of the first data actor and assumes these are default
Returns:
-the default equip for a dataActor
-
getDefaultTraits()
-
gets the traits of the first data actor and assumes these are default
Returns:
-the default traits for a dataActor
-
replace()
-
replace the actor at this index with this actor