pakiet_gra_platformowa
Class Plotno

java.lang.Object
  extended by javax.microedition.lcdui.Displayable
      extended by javax.microedition.lcdui.Canvas
          extended by javax.microedition.lcdui.game.GameCanvas
              extended by pakiet_gra_platformowa.Plotno
All Implemented Interfaces:
java.lang.Runnable, javax.microedition.lcdui.CommandListener

public class Plotno
extends javax.microedition.lcdui.game.GameCanvas
implements java.lang.Runnable, javax.microedition.lcdui.CommandListener


Field Summary
static int DYSTANS
           
static int DYSTANSPOCISK
           
static boolean LEWO
           
static boolean PRAWO
           
static int PREDKOSC
           
static int PRZERWA
           
static int SZEROKOSC
           
static int WYMIAR_BOH
           
static int WYMIAR_PL
           
static int WYSOKOSC
           
 
Fields inherited from class javax.microedition.lcdui.game.GameCanvas
DOWN_PRESSED, FIRE_PRESSED, GAME_A_PRESSED, GAME_B_PRESSED, GAME_C_PRESSED, GAME_D_PRESSED, LEFT_PRESSED, RIGHT_PRESSED, UP_PRESSED
 
Fields inherited from class javax.microedition.lcdui.Canvas
DOWN, FIRE, GAME_A, GAME_B, GAME_C, GAME_D, KEY_NUM0, KEY_NUM1, KEY_NUM2, KEY_NUM3, KEY_NUM4, KEY_NUM5, KEY_NUM6, KEY_NUM7, KEY_NUM8, KEY_NUM9, KEY_POUND, KEY_STAR, LEFT, RIGHT, UP
 
Constructor Summary
Plotno(boolean keys, Gra_platformowa_MIDlet _gra)
           
 
Method Summary
 void commandAction(javax.microedition.lcdui.Command c, javax.microedition.lcdui.Displayable s)
           
 void dodajDoMenadzera(javax.microedition.lcdui.game.Layer l)
           
 Bohater getBohater()
           
 Pociski getPociski()
           
 Potworki getPotworki()
           
 boolean jakPostapic(int value)
           
 void klawiatura()
           
 void koniecGry()
           
 void odswiezMenadzera(int x, int y)
           
 void paint(javax.microedition.lcdui.Graphics g)
           
 void run()
           
 void ustawDanePotworki(int x, int y, int i, DanePotworka p)
           
 void ustawDanePotworkiDlugosc(int x, int y, int dlugosc)
           
 void usunZMenadzera(javax.microedition.lcdui.game.Layer l)
           
 void zakonczGre()
           
 
Methods inherited from class javax.microedition.lcdui.game.GameCanvas
flushGraphics, flushGraphics, getKeyStates
 
Methods inherited from class javax.microedition.lcdui.Canvas
getGameAction, getKeyCode, getKeyName, hasPointerEvents, hasPointerMotionEvents, hasRepeatEvents, isDoubleBuffered, repaint, repaint, serviceRepaints, setFullScreenMode
 
Methods inherited from class javax.microedition.lcdui.Displayable
addCommand, getHeight, getTicker, getTitle, getWidth, isShown, removeCommand, setCommandListener, setTicker, setTitle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SZEROKOSC

public static int SZEROKOSC

WYSOKOSC

public static int WYSOKOSC

PRZERWA

public static final int PRZERWA
See Also:
Constant Field Values

DYSTANS

public static final int DYSTANS
See Also:
Constant Field Values

DYSTANSPOCISK

public static final int DYSTANSPOCISK
See Also:
Constant Field Values

PREDKOSC

public static final int PREDKOSC
See Also:
Constant Field Values

WYMIAR_PL

public static final int WYMIAR_PL
See Also:
Constant Field Values

WYMIAR_BOH

public static final int WYMIAR_BOH
See Also:
Constant Field Values

PRAWO

public static final boolean PRAWO
See Also:
Constant Field Values

LEWO

public static final boolean LEWO
See Also:
Constant Field Values
Constructor Detail

Plotno

public Plotno(boolean keys,
              Gra_platformowa_MIDlet _gra)
Method Detail

commandAction

public void commandAction(javax.microedition.lcdui.Command c,
                          javax.microedition.lcdui.Displayable s)
Specified by:
commandAction in interface javax.microedition.lcdui.CommandListener

zakonczGre

public void zakonczGre()

usunZMenadzera

public void usunZMenadzera(javax.microedition.lcdui.game.Layer l)

dodajDoMenadzera

public void dodajDoMenadzera(javax.microedition.lcdui.game.Layer l)

odswiezMenadzera

public void odswiezMenadzera(int x,
                             int y)

paint

public void paint(javax.microedition.lcdui.Graphics g)
Overrides:
paint in class javax.microedition.lcdui.game.GameCanvas

klawiatura

public void klawiatura()

getPotworki

public Potworki getPotworki()

getPociski

public Pociski getPociski()

getBohater

public Bohater getBohater()

ustawDanePotworki

public void ustawDanePotworki(int x,
                              int y,
                              int i,
                              DanePotworka p)

ustawDanePotworkiDlugosc

public void ustawDanePotworkiDlugosc(int x,
                                     int y,
                                     int dlugosc)

koniecGry

public void koniecGry()

run

public void run()
Specified by:
run in interface java.lang.Runnable

jakPostapic

public boolean jakPostapic(int value)