vooga.games.mariogame
Class MarioSprite

java.lang.Object
  extended by PlayerSprite
      extended by vooga.games.mariogame.CharacterSprite
          extended by vooga.games.mariogame.MarioSprite

public class MarioSprite
extends CharacterSprite


Field Summary
 
Fields inherited from class vooga.games.mariogame.CharacterSprite
myMaxHealth
 
Constructor Summary
MarioSprite(java.lang.String name, java.lang.String stateName, java.awt.image.BufferedImage[] left, java.awt.image.BufferedImage[] right)
           
 
Method Summary
 void actOnItem(ItemSprite item)
           
 void cheat(char c)
           
 double getMaxX()
           
 java.lang.Integer getScore()
           
 void incScore(int i)
           
 boolean isKilled()
           
 void jump(boolean force)
           
 void jumpCmd()
           
 void moveLeft()
           
 void moveRight()
           
 void setKilled(boolean b)
           
 void setMaxX(double maxX)
           
 void setOnGround(boolean b)
           
 void setScore(int i)
           
 void setY(double y)
           
 void stop()
           
 void update(long elapsedTime)
           
 
Methods inherited from class vooga.games.mariogame.CharacterSprite
getGravityCoef, getHealth, getMaxHealth, setGravityCoef, setHealth, setMaxHealth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarioSprite

public MarioSprite(java.lang.String name,
                   java.lang.String stateName,
                   java.awt.image.BufferedImage[] left,
                   java.awt.image.BufferedImage[] right)
Method Detail

moveRight

public void moveRight()

moveLeft

public void moveLeft()

jump

public void jump(boolean force)

setY

public void setY(double y)

jumpCmd

public void jumpCmd()

stop

public void stop()

setOnGround

public void setOnGround(boolean b)

isKilled

public boolean isKilled()

setKilled

public void setKilled(boolean b)

update

public void update(long elapsedTime)
Overrides:
update in class CharacterSprite

getMaxX

public double getMaxX()

setMaxX

public void setMaxX(double maxX)

actOnItem

public void actOnItem(ItemSprite item)

incScore

public void incScore(int i)

setScore

public void setScore(int i)

getScore

public java.lang.Integer getScore()

cheat

public void cheat(char c)