Class CopterCanvas
java.lang.Object
javax.microedition.lcdui.Displayable
javax.microedition.lcdui.Canvas
CopterCanvas
- All Implemented Interfaces:
- Copter2DSpaceScene
public class CopterCanvas
- extends javax.microedition.lcdui.Canvas
- implements Copter2DSpaceScene
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 |
Methods inherited from class javax.microedition.lcdui.Canvas |
getGameAction, getKeyCode, getKeyName, hasPointerEvents, hasPointerMotionEvents, hasRepeatEvents, hideNotify, isDoubleBuffered, keyReleased, keyRepeated, pointerDragged, pointerPressed, pointerReleased, repaint, repaint, serviceRepaints, setFullScreenMode, showNotify, sizeChanged |
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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
maxX
int maxX
maxY
int maxY
_xSpec
int _xSpec
_ySpec
int _ySpec
_isWall
boolean _isWall
repaintNotifier
CopterCanvas.RepaintNotifier repaintNotifier
copter_mover
CopterMover copter_mover
CopterCanvas
public CopterCanvas(int nStepsHorizontal)
getSpecX
public int getSpecX()
- Specified by:
getSpecX
in interface Copter2DSpaceScene
getSpecY
public int getSpecY()
- Specified by:
getSpecY
in interface Copter2DSpaceScene
getCopterX
public int getCopterX()
- Specified by:
getCopterX
in interface Copter2DSpaceScene
getCopterY
public int getCopterY()
- Specified by:
getCopterY
in interface Copter2DSpaceScene
getCopterVx
public int getCopterVx()
- Specified by:
getCopterVx
in interface Copter2DSpaceScene
getCopterVy
public int getCopterVy()
- Specified by:
getCopterVy
in interface Copter2DSpaceScene
getMinYSpec
int getMinYSpec()
setMaxCoord
void setMaxCoord(int nStepsHorizontal)
nextFrame
public void nextFrame(javax.microedition.lcdui.Display d)
xStepsToPixels
int xStepsToPixels(int xSteps)
yStepsToPixels
int yStepsToPixels(int ySteps)
getStepWidth
int getStepWidth()
getStepHeight
int getStepHeight()
fillStepSizedRect
void fillStepSizedRect(javax.microedition.lcdui.Graphics g,
int x,
int y)
paintHelicopter
void paintHelicopter(javax.microedition.lcdui.Graphics g)
paintSpectator
void paintSpectator(javax.microedition.lcdui.Graphics g)
fillBackgnd
void fillBackgnd(javax.microedition.lcdui.Graphics g)
setWall
public void setWall(boolean w)
isWall
public boolean isWall()
paintWall
void paintWall(javax.microedition.lcdui.Graphics g)
paint
protected void paint(javax.microedition.lcdui.Graphics g)
- Specified by:
paint
in class javax.microedition.lcdui.Canvas
keyPressed
public void keyPressed(int keyCode)
- Overrides:
keyPressed
in class javax.microedition.lcdui.Canvas