Skip to content

Pokemon

neta-r edited this page Dec 19, 2020 · 1 revision

CL_Pokemon

Data Structor & Fields:

  • A edge_data edge which represents the edge the pokemoon is on.
  • A double value which represents the worth of the pokemon.
  • A int type which represents whether it's on a upward and downward edge.
  • A Point3D pos which represents the geographic location of the pokemon.
  • A double min_dist which represents the minimal distance between the pokemon and it's next eater.
  • A CL_Agent nxtEater which represents the next agent that is going to eat this pokemon.
  • An int closePkm which represents the number of pokemos that are close to this pokemons. Will be used to locate the agents smartly.

Functions:

  • A regular constructor.
  • Getters and Setters to closePkm , edge , pos , type , value , nxtEater.
  • An override of the equals and hashCode function allowing to compare to pokemons based on their locations.

Menu

Clone this wiki locally