Package dev.twilite.game.wrapper
Class Effect
java.lang.Object
dev.twilite.game.wrapper.Effect
Spot animation/effect currently present in the world.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanactive()Returns whether the effect is currently active.intReturns the current effect animation id.Returns the generated gameval constant name forId.id(), or the numeric id as text when no constant is known.coord()Returns this unit's world coordinate.fine()Returns this unit's fine coordinate, representing its model location.intid()Returns the effect id.map()Returns this unit's map coordinate relative to the loaded world area.world()Returns the world this unit belongs to.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.twilite.game.trait.Unit
area, directPathTo, directPathTo, directPathTo, distanceTo, distanceTo, distanceTo, lineOfSightTo, lineOfSightTo, lineOfSightTo, lineOfWalkTo, lineOfWalkTo, lineOfWalkTo, manhattanDistanceTo, manhattanDistanceTo, manhattanDistanceTo, pathInDirection
-
Constructor Details
-
Effect
Wraps a native effect provider.
-
-
Method Details
-
id
public int id()Returns the effect id. -
constantName
Description copied from interface:IdReturns the generated gameval constant name forId.id(), or the numeric id as text when no constant is known.This is intended for logs and diagnostics where a stable symbolic name is easier to read than a raw number.
- Specified by:
constantNamein interfaceId
-
animation
public int animation()Returns the current effect animation id. -
active
public boolean active()Returns whether the effect is currently active. -
world
Description copied from interface:UnitReturns the world this unit belongs to. -
coord
Description copied from interface:UnitReturns this unit's world coordinate. -
fine
Description copied from interface:UnitReturns this unit's fine coordinate, representing its model location. -
map
Description copied from interface:UnitReturns this unit's map coordinate relative to the loaded world area.
-