Class Mushroom
java.lang.Object
ch.idsia.benchmark.mario.engine.sprites.Sprite
ch.idsia.benchmark.mario.engine.sprites.Mushroom
public class Mushroom extends Sprite
-
Field Summary
Fields Modifier and Type Field Description boolean
avoidCliffs
int
facing
Fields inherited from class ch.idsia.benchmark.mario.engine.sprites.Sprite
creaturesGravity, hPic, iceCoeff, kind, KIND_BULLET_BILL, KIND_COIN_ANIM, KIND_ENEMY_FLOWER, KIND_FIRE_FLOWER, KIND_FIREBALL, KIND_GOOMBA, KIND_GOOMBA_WINGED, KIND_GREEN_KOOPA, KIND_GREEN_KOOPA_WINGED, KIND_GREEN_MUSHROOM, KIND_MARIO, KIND_MUSHROOM, KIND_NONE, KIND_PARTICLE, KIND_PRINCESS, KIND_RED_KOOPA, KIND_RED_KOOPA_WINGED, KIND_SHELL, KIND_SPARCLE, KIND_SPIKY, KIND_SPIKY_WINGED, KIND_UNDEF, KIND_WAVE_GOOMBA, layer, mapX, mapY, prevSheet, sheet, spriteContext, spriteTemplate, visible, windCoeff, wPic, x, xa, xFlipPic, xOld, xPic, xPicO, y, ya, yFlipPic, yOld, yPic, yPicO
-
Constructor Summary
Constructors Constructor Description Mushroom(LevelScene world, int x, int y)
-
Method Summary
Modifier and Type Method Description void
bumpCheck(int xTile, int yTile)
void
collideCheck()
void
move()
Methods inherited from class ch.idsia.benchmark.mario.engine.sprites.Sprite
fireballCollideCheck, getNameByKind, iceScale, isDead, release, render, setCreaturesGravity, setCreaturesIce, setCreaturesWind, shellCollideCheck, tick, tickNoMove, windScale
-
Field Details
-
facing
public int facing -
avoidCliffs
public boolean avoidCliffs
-
-
Constructor Details
-
Method Details
-
collideCheck
public void collideCheck()- Overrides:
collideCheck
in classSprite
-
move
public void move() -
bumpCheck
public void bumpCheck(int xTile, int yTile)
-