Class JBombBonusFlameCell

java.lang.Object
  |
  +--CellBasedGame.Cell
        |
        +--JBombCell
              |
              +--JBombGrassCell
                    |
                    +--JBombBonusCell
                          |
                          +--JBombBonusFlameCell

public class JBombBonusFlameCell
extends JBombBonusCell

Implementazione di un bonus che consente al giocatore di avere una fiammata piu lunga.

Author:
Marco Mastropaolo (marco.mastropaolo@libero.it / st971422@educ.di.unito.it)

Field Summary
 int SPRITEX
          (costante) La coordinata X dello sprite
 int SPRITEY
          (costante) La coordinata Y dello sprite
 
Fields inherited from class JBombGrassCell
FIREPERMANENCY, FIRESPRITEX, FIRESPRITEY, m_Bomb, m_bOnFire, m_nFireCountDown
 
Fields inherited from class JBombCell
m_bIsExploding, m_jbGame
 
Fields inherited from class CellBasedGame.Cell
m_Game, m_nX, m_nY
 
Constructor Summary
JBombBonusFlameCell(JBombGame Game, int nX, int nY)
          Costruisce l'oggetto.
 
Method Summary
 void effect(JBPlayer p)
          applica l'effetto
 void paint(java.awt.Graphics g)
           
 
Methods inherited from class JBombBonusCell
autoDestroy, BlocksFire, Explode, hasBomb, isAWall, setBomb, timeTick, walkOver
 
Methods inherited from class JBombCell
IsExploding, isOnFire
 
Methods inherited from class CellBasedGame.Cell
changeSelf
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

SPRITEX

public final int SPRITEX
(costante) La coordinata X dello sprite

SPRITEY

public final int SPRITEY
(costante) La coordinata Y dello sprite
Constructor Detail

JBombBonusFlameCell

public JBombBonusFlameCell(JBombGame Game,
                           int nX,
                           int nY)
Costruisce l'oggetto.
Parameters:
Game - Il gioco a cui appartiene l'oggetto
nX - la coordinata x del bonus
nY - la coordinata y del bonus
Method Detail

paint

public void paint(java.awt.Graphics g)
Overrides:
paint in class JBombBonusCell

effect

public void effect(JBPlayer p)
applica l'effetto
Parameters:
p - Il giocatore che ha preso il bonus
Overrides:
effect in class JBombBonusCell