leap
library
Classes
Character <T extends LeapGame >
A type of PhysicalEntity which is typically used as the base class
for players, enemies, etc.
Characters have health, and usually a removed on death.
CharacterAnimation <TKey , TChar extends Character <LeapGame > >
A SpriteAnimationGroupComponent
with extra funcationality to
automatically handle what most character components want. This
should be a direct child of a Character .
CollisionDetectionBehavior
Contains all the logic for the collision detection system,
updates the velocity , x , y , and collisionInfo of the as needed.
CollisionInfo
Stores collision data for PhysicalEntity .
CommonTags
Common PhysicalEntity.tags
FourButtonInput
Combines touch screen and keyboard input into one API.
FourButtonKeyboardInput
FourButtonTapInput
GroundTileHandler
Interface for custom handling of a LeapMapGroundTile , used by LeapMap .
JumperBehavior
Updates the JumperCharacter movement logic.
JumperCharacter <TGame extends LeapGame >
Ladder <T extends LeapGame >
A vertical ladder that entities (usually the player) can climb up/down.
LeapConfiguration
A configurable class that allows the developer to
customize different options that Leap will use
when reading the map.
LeapFadeInOutMapTransition
LeapGame
A FlameGame
with all the Leap built-ins.
LeapMap
This component encapsulates the Tiled map, and in particular builds the
grid of ground tiles that make up the terrain of the game.
LeapMapGroundTile
Represents the one tile in the map for collision detection.
TiledComponent
handles drawing the tile images.
LeapMapTransition
LeapWorld
The world component encapsulates the physics engine
and all of the World
components.
MovingPlatform <T extends LeapGame >
A base class for moving platforms, which behave the same as
groun tiles but move around, typically on a set path.
OneWayBottomPlatformHandler
Modifies a ground tile to be phased through from all directions
except the bottom.
OneWayLeftPlatformHandler
Modifies a ground tile to be phased through from all directions
except the left.
OneWayRightPlatformHandler
Modifies a ground tile to be phased through from all directions
except the right.
OneWayTopPlatformHandler
Modifies a ground tile to be phased through from all directions
except the top.
OnLadderStatus <T extends LeapGame >
Status indicating the PhysicalEntity this is added to is
on a ladder.
PhysicalBehavior <T extends PhysicalEntity <LeapGame > >
Base class for behaviors on PhysicalEntity .
PhysicalEntity <TGame extends LeapGame >
A component which has a physical representation in the world, with
collision detection, movement, etc.
StatusComponent
A base for building status effects pertaining to PhysicalEntity . Effects
which could are reusable are typically implemented as mixins
(see IgnoresGravity ), whereas fully custom statuses may simply extend this
and have no mixins.
ThreeButtonInput
Combines touch screen and keyboard input into one API.
ThreeButtonKeyboardInput
ThreeButtonTapInput
TiledObjectHandler
Interface for custom handling of a TiledObject
, used by LeapMap .
TiledOptions
A configurable class specifically about Tiled names, classes and etc.
TwoButtonInput
Combines touch screen and keyboard input into one API.
TwoButtonKeyboardInput
TwoButtonTapInput
VelocityBehavior
Mixins
AppLifecycleAware
Interface for opting into app lifecycle state changes
HasTrackedComponents <W extends LeapWorld >
IgnoredByCollisions
A status mixin which indicates the parent entity should not
be eligible to collide with by others.
IgnoredByWorld
A status mixin which indicates the parent entity should not
be considered part of the physical world anymore. This means
it will not be moved by gravity or velocity (unless you manually
update the position) and it will be completely ignored by the collision
system so nothing else will collide with it.
IgnoresCollisions
A status mixin which indicates the parent entity should not
collide attempt to collide with other things.
IgnoresGravity
A status mixin which indicates the parent entity should not
be affected by gravity while the status is present.
IgnoresNonSolidCollisions
A status mixin which indicates the parent entity should not
collide with non-solids.
IgnoresSolidCollisions
A status mixin which indicates the parent entity should not
collide with solids (ground).
IgnoresVelocity
A status mixin which indicates the parent entity should not
be automatically moved by its velocity.
TrackedComponent <K , T extends HasTrackedComponents <LeapWorld > >