de.farafin.snEADy.communication
Class D_GameInfo

java.lang.Object
  extended by de.farafin.snEADy.communication.D_GameInfo

public final class D_GameInfo
extends java.lang.Object

Thats the class all modules should use to communicate with each other

Version:
$Revision: 1.24 $
Author:
roland, lars

Field Summary
 long exitTime
          the Time the exit accures (if 0 than it happends never)
 boolean gameRunning
          wether teh game runs or not
 long gameTime
          the actual game time
 D_Level level
          Field arena
 D_PlayerData[] playerData
          Field playerData
 long suddenDeath
          The beginning of the suddenDeath phasis (if 0 than it happends never)
 
Constructor Summary
D_GameInfo()
          default constructor
D_GameInfo(D_GameInfo gameInfo)
          copy constructor reference-copy of attrbutes: use copy() if you need a full copy
D_GameInfo(D_Level level, D_PlayerData[] playerData, long gameTime, long exitTime, long sdTime, boolean running)
          create constructor
 
Method Summary
 void addPlayerData(D_PlayerData playerData)
           
 java.lang.Object clone()
           
 void copyOnMe(D_GameInfo gameInfo)
          copys all data to the lokal instance. there is no new Instance created if all array sizes fit to each other
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

level

public D_Level level
Field arena


playerData

public D_PlayerData[] playerData
Field playerData


gameTime

public long gameTime
the actual game time


suddenDeath

public long suddenDeath
The beginning of the suddenDeath phasis (if 0 than it happends never)


exitTime

public long exitTime
the Time the exit accures (if 0 than it happends never)


gameRunning

public boolean gameRunning
wether teh game runs or not

Constructor Detail

D_GameInfo

public D_GameInfo()
default constructor


D_GameInfo

public D_GameInfo(D_Level level,
                  D_PlayerData[] playerData,
                  long gameTime,
                  long exitTime,
                  long sdTime,
                  boolean running)
create constructor

Parameters:
level -
playerData -
gameTime -
exitTime -
sdTime -
running -

D_GameInfo

public D_GameInfo(D_GameInfo gameInfo)
copy constructor reference-copy of attrbutes: use copy() if you need a full copy

Parameters:
gameInfo -
Method Detail

copyOnMe

public void copyOnMe(D_GameInfo gameInfo)
copys all data to the lokal instance. there is no new Instance created if all array sizes fit to each other

Parameters:
gameInfo -

addPlayerData

public void addPlayerData(D_PlayerData playerData)
Parameters:
playerData - is added to the current array. its only a reference copy!

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object