All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.loki3.cyber.server.Scenario

java.lang.Object
    |
    +----com.loki3.cyber.server.Scenario

public class Scenario
extends java.lang.Object
Controls all the units in a game.


Variable Index

 o Max
the maximum part of the initial view for the objects
 o Min
the minimum part of the initial view for the objects

Constructor Index

 o Scenario()
 

Method Index

 o add(GameListener)
add a controller to the game
 o draw(Graphics, ViewTransform)
draw all objects using current view information
 o gameEnded()
Notify everybody game has ended.
 o gameStarted()
Notify everybody game has begun.
 o gameTick(double)
Notify everybody of game tick.
 o item(Item)
add a non-controlled item to the game
 o objective(Objective)
determine the objective for this scenario

Field Detail

 o Min
public Vector Min
          the minimum part of the initial view for the objects
 o Max
public Vector Max
          the maximum part of the initial view for the objects

Constructor Detail

 o Scenario
public Scenario()

Method Detail

 o gameStarted
public void gameStarted()
          Notify everybody game has begun.
 o gameTick
public void gameTick(double tick)
          Notify everybody of game tick.
Parameters:
tick - how many time units have passed since last call.
 o gameEnded
public void gameEnded()
          Notify everybody game has ended.
 o draw
public void draw(java.awt.Graphics graf,
                 com.loki3.pa.ViewTransform view)
          draw all objects using current view information
 o add
public void add(GameListener gameunit)
          add a controller to the game
 o item
public void item(com.loki3.pa.Item item)
          add a non-controlled item to the game
 o objective
public void objective(Objective objective)
          determine the objective for this scenario

All Packages  Class Hierarchy  This Package  Previous  Next  Index