public class WizardAvatar extends MovingAvatar
| Modifier and Type | Field and Description | 
|---|---|
| double | air_slowdown_factor | 
| Direction | facing_dir | 
| double | ground_speedup_factor | 
| int[] | itype | 
| int | last_block_time | 
| java.lang.String | stype | 
| java.lang.String[] | stypes | 
actions, actionsNIL, is_disqualified, lastMovementType, playerautotiling, 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 | 
|---|
| WizardAvatar() | 
| WizardAvatar(Vector2d position,
            java.awt.Dimension size,
            SpriteContent cnt) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | applyMovement(Game game,
             Direction action) | 
| 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 | postProcess()Method to perform post processing when the sprite has received its parameters. | 
| void | updateAvatar(Game game,
            boolean requestInput,
            boolean[] actionMask)This update call is for the game tick() loop. | 
addScore, disqualify, getKeyHandler, getPlayerID, getScore, getWinState, is_disqualified, requestPlayerInput, setKeyHandler, setPlayerID, setScore, setWinState, updateUse_draw, _drawHealthBar, _drawImage, _drawOriented, _drawResources, _updateOrientation, _updatePos, _updateRotation, _velocity, draw, equiv, getAmountResource, getDependentSprites, getLastPosition, getPosition, getType, groundIntersects, init, is_disabled, lastDirection, loadImage, modifyResource, parseParameters, preMovement, removeResource, setDisabled, setFromAvatar, setRect, setRect, subtractResource, toString, update, updateBucket, updatePassivepublic double ground_speedup_factor
public double air_slowdown_factor
public java.lang.String stype
public java.lang.String[] stypes
public int[] itype
public Direction facing_dir
public int last_block_time
public WizardAvatar()
public WizardAvatar(Vector2d position, java.awt.Dimension size, SpriteContent cnt)
protected void loadDefaults()
VGDLSpriteloadDefaults in class MovingAvatarpublic boolean intersects(VGDLSprite sp)
intersects in class VGDLSpritesp - the other sprite to check collisions withpublic void updateAvatar(Game game, boolean requestInput, boolean[] actionMask)
updateAvatar in class MovingAvatargame - current state of the game.public void postProcess()
VGDLSpritepostProcess in class MovingAvatarpublic void applyMovement(Game game, Direction action)
applyMovement in class MovingAvatarpublic VGDLSprite copy()
VGDLSpritecopy in class MovingAvatarpublic void copyTo(VGDLSprite target)
VGDLSpritecopyTo in class MovingAvatartarget - the sprite to copy to.