Class JBombWallCell

java.lang.Object
  |
  +--CellBasedGame.Cell
        |
        +--JBombCell
              |
              +--JBombWallCell

public class JBombWallCell
extends JBombCell

Classe che implementa le Cell dei muri

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

Field Summary
protected static int SPRITEFILEWALLX
          coordinate degli sprite
protected static int SPRITEFILEWALLY
          coordinate degli sprite
 
Fields inherited from class JBombCell
m_bIsExploding, m_jbGame
 
Fields inherited from class CellBasedGame.Cell
m_Game, m_nX, m_nY
 
Constructor Summary
JBombWallCell(JBombGame Game, int nX, int nY)
          Costruisce una JBombWallCell
 
Method Summary
 boolean BlocksFire()
           
 void Explode(Explodable[][] World)
          Esplode la cella lasciando al suo posto un eventuale bonus
 boolean isAWall(DynamicObject obj)
           
 void paint(java.awt.Graphics g)
           
 void timeTick()
           
 
Methods inherited from class JBombCell
IsExploding, isOnFire, walkOver
 
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

SPRITEFILEWALLX

protected static final int SPRITEFILEWALLX
coordinate degli sprite

SPRITEFILEWALLY

protected static final int SPRITEFILEWALLY
coordinate degli sprite
Constructor Detail

JBombWallCell

public JBombWallCell(JBombGame Game,
                     int nX,
                     int nY)
Costruisce una JBombWallCell
Parameters:
Game - Il gioco in cui è contenuta
nX - la coordinata x della cella
nY - la coordinata y della cella
Method Detail

paint

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

isAWall

public boolean isAWall(DynamicObject obj)
Overrides:
isAWall in class JBombCell

Explode

public void Explode(Explodable[][] World)
Esplode la cella lasciando al suo posto un eventuale bonus
Parameters:
World - un array di oggetti Explodable
Overrides:
Explode in class JBombCell

timeTick

public void timeTick()
Overrides:
timeTick in class JBombCell

BlocksFire

public boolean BlocksFire()
Overrides:
BlocksFire in class JBombCell