de.tud.dvs1.example
Class TestGameWorld

java.lang.Object
  extended by de.tud.dvs1.mmpgp2p.GameWorld
      extended by de.tud.dvs1.example.TestGameWorld
All Implemented Interfaces:
java.io.Serializable

public class TestGameWorld
extends GameWorld

Einfache Implementierung einer Spielewelt. Es werden Objekte zufällig innerhalb der Welt platziert. Achtung: es ist normalerweise nicht nötig, GameWorld zu implementieren. Dies wurde in der Beispielimplementierung nur aus Übersichtsgründen getan.

See Also:
Serialized Form

Field Summary
static double CANNON_BALL_SPEED
           
static int TYP_CANNON_BALL
           
static int TYP_RANDOM_MOVING
           
static int TYP_STATIC
           
 
Fields inherited from class de.tud.dvs1.mmpgp2p.GameWorld
dx, dy, maxID, nextID, objects, tilesize, totx, toty, x, y
 
Constructor Summary
TestGameWorld(int tx, int ty, int tsize, int objsMoving, int objsStatic)
           
 
Method Summary
 
Methods inherited from class de.tud.dvs1.mmpgp2p.GameWorld
add, elements, forceAdd, getByID, getByID, getByKoord, getByName, getDX, getDY, getGameWorldInfo, getNextID, getTilesize, getTotX, getTotY, getX, getY, goalIsIn, isIn, remove, remove, saveToFile, size, toArray, toAvatarArray, toRegionInfo, toSortedAvatarArray, toString, toString, update, updateOrAdd
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYP_RANDOM_MOVING

public static final int TYP_RANDOM_MOVING
See Also:
Constant Field Values

TYP_STATIC

public static final int TYP_STATIC
See Also:
Constant Field Values

TYP_CANNON_BALL

public static final int TYP_CANNON_BALL
See Also:
Constant Field Values

CANNON_BALL_SPEED

public static final double CANNON_BALL_SPEED
See Also:
Constant Field Values
Constructor Detail

TestGameWorld

public TestGameWorld(int tx,
                     int ty,
                     int tsize,
                     int objsMoving,
                     int objsStatic)