public class FlakAvatar extends HorizontalAvatar
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
ammo |
int |
ammoCost |
int |
ammoId |
int |
itype |
int |
minAmmo |
java.lang.String |
stype |
actions, alternate_keys, hasMoved, playerbucket, bucketSharp, color, cooldown, draw_arrow, image, img, invisible, is_avatar, is_from_avatar, is_npc, is_oriented, is_resource, is_static, is_stochastic, itypes, lastmove, lastrect, mass, name, only_active, orientation, physics, physicstype, physicstype_id, portal, rect, resources, shrinkfactor, singleton, speed, spriteID, strength| Constructor and Description |
|---|
FlakAvatar() |
FlakAvatar(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.
|
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 |
update(Game game)
Updates this sprite, performing the movements and actions for the next step.
|
performActiveMovement_draw, _drawImage, _drawOriented, _drawResources, _updatePos, _velocity, applyMovement, draw, getAmountResource, getPosition, getType, init, lastDirection, loadImage, modifyResource, parseParameters, setFromAvatar, setRect, setRect, toString, updatePassivepublic java.lang.String stype
public int itype
public java.lang.String ammo
public int ammoId
public int minAmmo
public int ammoCost
public FlakAvatar()
public FlakAvatar(Vector2d position, java.awt.Dimension size, SpriteContent cnt)
protected void loadDefaults()
VGDLSpriteloadDefaults in class HorizontalAvatarpublic void postProcess()
VGDLSpritepostProcess in class HorizontalAvatarpublic void update(Game game)
VGDLSpriteupdate in class HorizontalAvatargame - the current game that is being played.public VGDLSprite copy()
VGDLSpritecopy in class HorizontalAvatarpublic void copyTo(VGDLSprite target)
VGDLSpritecopyTo in class HorizontalAvatartarget - the sprite to copy to.