Skip to content

CL_Pokemon

LielVaknin edited this page Dec 20, 2020 · 17 revisions

This class included in the gameClient package.
It represents a pokemon in the game.

Fields in this class:

  • int id
  • double value
  • int type - Represents if the pokemon is on rising / falling edge.
  • geo_location pos
  • edge_data edge

CL_Pokemon methods:

  • Constructor - CL_Pokemon(double value, int type, geo_location pos, directed_weighted_graph g),
    also updates the edge which the pokemon is stands on.
  • public edge_data getEdge() - Returns the edge which this pokemon is stands on.
  • public double getValue() - Returns the value of this pokemon.
  • public int getType() - Returns the type of this pokemon.
    if type == -1 the pokemon is on falling edge, if type == 1 the pokemon is on rising edge.
  • public geo_location getPos() - Returns geo location <x,y,z>, aka Point3D, of this pokemon.
  • String toString() - String which represents the value and type of this pokemon.

pokemon

Clone this wiki locally