app2.client.game
Class SimpleGameCanvas

java.lang.Object
  extended byjavax.microedition.lcdui.Displayable
      extended byjavax.microedition.lcdui.Canvas
          extended byapp2.client.game.GameCanvas
              extended byapp2.client.game.SimpleGameCanvas
All Implemented Interfaces:
javax.microedition.lcdui.CommandListener, java.lang.Runnable

public class SimpleGameCanvas
extends GameCanvas


Field Summary
 
Fields inherited from class app2.client.game.GameCanvas
DEBUG, ihmGasp, nbMultiplayerActors, xMax, yMax, ZOOM_FACTOR
 
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
SimpleGameCanvas(App midlet, IHMGasp ihmGasp, int _time)
           
 
Method Summary
 void initialize()
           
 void treatReceivedMessage(java.lang.Object o)
          This method treats each type of message: NewPlayer and so on
 
Methods inherited from class app2.client.game.GameCanvas
addActor, centerOnActorX, centerOnActorY, commandAction, convertToScreenX, convertToScreenY, getMultiplayerActor, isKeyPressed, keyPressed, newGame, onDataEvent, onQuitEvent, pause, removeActor, restart, run, stop
 
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
 

Constructor Detail

SimpleGameCanvas

public SimpleGameCanvas(App midlet,
                        IHMGasp ihmGasp,
                        int _time)
Parameters:
midlet -
Method Detail

initialize

public void initialize()
Specified by:
initialize in class GameCanvas

treatReceivedMessage

public void treatReceivedMessage(java.lang.Object o)
This method treats each type of message: NewPlayer and so on

Specified by:
treatReceivedMessage in class GameCanvas