pakiet_gra_platformowa
Class Potworek

java.lang.Object
  extended by javax.microedition.lcdui.game.Layer
      extended by javax.microedition.lcdui.game.Sprite
          extended by pakiet_gra_platformowa.ObiektRuchomy
              extended by pakiet_gra_platformowa.Potworek
All Implemented Interfaces:
WarunkiStrzelania

public class Potworek
extends ObiektRuchomy
implements WarunkiStrzelania


Field Summary
 
Fields inherited from class javax.microedition.lcdui.game.Sprite
TRANS_MIRROR, TRANS_MIRROR_ROT180, TRANS_MIRROR_ROT270, TRANS_MIRROR_ROT90, TRANS_NONE, TRANS_ROT180, TRANS_ROT270, TRANS_ROT90
 
Constructor Summary
Potworek(javax.microedition.lcdui.Image _obraz, int _nr_planszy_x, int _nr_planszy_y, javax.microedition.lcdui.game.TiledLayer _tekstura, int _xend, boolean _kierunek, Plotno _plotno)
           
 
Method Summary
 int getXend()
           
 int getXstart()
           
 void laduj()
           
 boolean mozeStrzelac()
           
 void ruch(Pociski pociski)
           
 void setPosition(int x, int y)
           
 void strzel()
           
 
Methods inherited from class pakiet_gra_platformowa.ObiektRuchomy
getKierunek, getNrPlanszyX, getNrPlanszyY, podskocz, przesunDol, przesunGora, przesunLewo, przesunPrawo, setKierunek, spadek
 
Methods inherited from class javax.microedition.lcdui.game.Sprite
collidesWith, collidesWith, collidesWith, defineCollisionRectangle, defineReferencePixel, getFrame, getFrameSequenceLength, getRawFrameCount, getRefPixelX, getRefPixelY, nextFrame, paint, prevFrame, setFrame, setFrameSequence, setImage, setRefPixelPosition, setTransform
 
Methods inherited from class javax.microedition.lcdui.game.Layer
getHeight, getWidth, getX, getY, isVisible, move, setVisible
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Potworek

public Potworek(javax.microedition.lcdui.Image _obraz,
                int _nr_planszy_x,
                int _nr_planszy_y,
                javax.microedition.lcdui.game.TiledLayer _tekstura,
                int _xend,
                boolean _kierunek,
                Plotno _plotno)
Method Detail

setPosition

public void setPosition(int x,
                        int y)
Overrides:
setPosition in class javax.microedition.lcdui.game.Layer

getXstart

public int getXstart()

getXend

public int getXend()

ruch

public void ruch(Pociski pociski)

strzel

public void strzel()
Specified by:
strzel in interface WarunkiStrzelania

laduj

public void laduj()
Specified by:
laduj in interface WarunkiStrzelania

mozeStrzelac

public boolean mozeStrzelac()
Specified by:
mozeStrzelac in interface WarunkiStrzelania