com.developpez.java.spaceinvader.bean
Class RedMonster

java.lang.Object
  extended by com.developpez.java.spaceinvader.bean.Monster
      extended by com.developpez.java.spaceinvader.bean.RedMonster

public class RedMonster
extends Monster

Un monstre rouge


Constructor Summary
RedMonster(javax.microedition.lcdui.Canvas canvas)
          Initialisation du monstre
 
Method Summary
 javax.microedition.lcdui.Image getImage()
           
 int getScore()
           
 int getSpeed()
           
 
Methods inherited from class com.developpez.java.spaceinvader.bean.Monster
getCanvas, getX, getY, move
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RedMonster

public RedMonster(javax.microedition.lcdui.Canvas canvas)
Initialisation du monstre

Parameters:
canvas - Canvas sur lequel le monstre sera affiché
Method Detail

getSpeed

public int getSpeed()
Specified by:
getSpeed in class Monster
Returns:
Vitesse spécifique aux monstres rouge

getImage

public javax.microedition.lcdui.Image getImage()
Specified by:
getImage in class Monster
Returns:
Image spécifique aux monstres rouge

getScore

public int getScore()
Specified by:
getScore in class Monster
Returns:
Score spécifique aux monstres bleu