Class AgentInfo

java.lang.Object
  |
  +--AgentInfo

public class AgentInfo
extends java.lang.Object

This class is used to represent all information about one player. For every object the following information is stored:

Version:
1.00
Author:
Daniel Förderer and Moritz Steiner

Field Summary
(package private)  Ball ball
           
private  int coNumber
           
(package private)  PlayerInfos[] coPlayer
           
private  int oppNumber
           
(package private)  PlayerInfos[] oppPlayer
           
(package private)  OwnPlayerInfos own
           
 
Constructor Summary
(package private) AgentInfo()
          constructor for an AgentInfo object which stores all the information a player knows abou the things he had seen
 
Method Summary
 int getCoNumber()
          gets the number of the co-players viewable
 int getOppNumber()
          gets the number of the opp-players viewable
 void incCoNumber()
          increases the number of the co-players viewable
 void incOppNumber()
          increases the number of the opp-players viewable
 void print()
          prints all information stored in AgentInfo usefull for debugging
 void reset()
          resets the Information stored in AgentInfo except of OwnPlayerInfo
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

oppNumber

private int oppNumber

coNumber

private int coNumber

coPlayer

PlayerInfos[] coPlayer

oppPlayer

PlayerInfos[] oppPlayer

ball

Ball ball

own

OwnPlayerInfos own
Constructor Detail

AgentInfo

AgentInfo()
constructor for an AgentInfo object which stores all the information a player knows abou the things he had seen
Method Detail

reset

public void reset()
resets the Information stored in AgentInfo except of OwnPlayerInfo

getCoNumber

public int getCoNumber()
gets the number of the co-players viewable

incCoNumber

public void incCoNumber()
increases the number of the co-players viewable

getOppNumber

public int getOppNumber()
gets the number of the opp-players viewable

incOppNumber

public void incOppNumber()
increases the number of the opp-players viewable

print

public void print()
prints all information stored in AgentInfo usefull for debugging