Visual class constructor for the map-objects.
the engine instance that the map-object sits in, required
type-id of the object as defined in the JSON file
animation speed for the animated visuals, default 0.5
Defines if the map-object is movable onto by other map-objects.
A reference to the engine view that the map-object sits in.
A dictionary for interaction offset points for each visual if defined in the map data file.
A dictionary for all the textures defined for the map-object.
Number of tiles that map-object covers horizontally on the isometric map
Current direction of the object.
Interaction offset points for the active visual.
Defines if the object is a floor object or not
Defines if the map-object is interactive/selectable.
Defines if the map-object is movable onto by other map-objects.
Position of the object in terms of column and row index.
If true doesn't allow transparency change on this object
Number of tiles that map-object covers vertically on the isometric map
Type-id of the map-object as defined in the json file.
Animation speed for the animated visuals included in the map-object visuals.
Animation speed for the animated visuals included in the map-object visuals.
Changes the map-object's texture(s) according to the specified visual-id.
visual-id
if true stops on the first frame after changing the visuals, default false
if true the animation will not loop after the first run, default false
callback function to call if 'noLoop' is true after the first run of the animation, default null
animation speed for the animated visuals, stays the same if not defined, default null
true
if the visual-id was valid and the visual has changed without errors
Changes the map-object's texture(s) according to the specified direction-id and the state of the map-object (moving or stationary).
direction-id as defined in TRAVISO.DIRECTIONS
if the requested visuals are for moving or stationary state, default false
if true stops on the first frame after changing the visuals, default false
if true the animation will not loop after the first run, default false
callback function to call if 'noLoop' is true after the first run of the animation, default null
animation speed for the animated visuals, stays the same if not defined, default null
Clears all references.
Visual class for the map-objects.