public class Walker extends VGDLSprite
Modifier and Type | Field and Description |
---|---|
boolean |
airsteering |
autotiling, bucket, bucketSharp, color, cooldown, currentFrame, draw_arrow, frameRate, frameRemaining, friction, gravity, healthPoints, hidden, hMult, image, images, img, invisible, is_avatar, is_from_avatar, is_npc, is_oriented, is_resource, is_static, is_stochastic, isFirstTick, itypes, jump_strength, lastmove, lastrect, limitHealthPoints, mass, max_speed, maxHealthPoints, name, on_ground, only_active, orientation, orientedImg, physics, physicstype, portal, randomtiling, rect, resources, rotateInPlace, rotation, shrinkfactor, singleton, size, solid, speed, spriteID, stationary, timeToLive, wMult
Constructor and Description |
---|
Walker() |
Walker(Vector2d position,
java.awt.Dimension size,
SpriteContent cnt) |
Modifier and Type | Method and Description |
---|---|
VGDLSprite |
copy()
Creates a copy of this sprite.
|
void |
copyTo(VGDLSprite target)
Copies the attributes of this object to the one passed as parameter.
|
boolean |
intersects(VGDLSprite sp)
Overwritting intersects to check if we are on ground.
|
protected void |
loadDefaults()
Loads the default values for this sprite.
|
void |
update(Game game)
Updates this sprite, performing the movements and actions for the next step.
|
_draw, _drawHealthBar, _drawImage, _drawOriented, _drawResources, _updateOrientation, _updatePos, _updateRotation, _velocity, draw, equiv, getAmountResource, getDependentSprites, getLastPosition, getPosition, getType, groundIntersects, init, is_disabled, lastDirection, loadImage, modifyResource, parseParameters, postProcess, preMovement, removeResource, setDisabled, setFromAvatar, setRect, setRect, subtractResource, toString, updateAvatar, updateBucket, updatePassive
public Walker()
public Walker(Vector2d position, java.awt.Dimension size, SpriteContent cnt)
public boolean intersects(VGDLSprite sp)
intersects
in class VGDLSprite
sp
- the other sprite to check collisions withpublic void update(Game game)
VGDLSprite
update
in class VGDLSprite
game
- the current game that is being played.protected void loadDefaults()
VGDLSprite
loadDefaults
in class VGDLSprite
public VGDLSprite copy()
VGDLSprite
copy
in class VGDLSprite
public void copyTo(VGDLSprite target)
VGDLSprite
copyTo
in class VGDLSprite
target
- the sprite to copy to.