5 #ifndef __RD_TARGET_HPP__
6 #define __RD_TARGET_HPP__
8 #include "Vector2dBase.hpp"
25 int getPlayerId()
const;
26 void setPlayerId(
int id);
31 const Vector2d & getDimensions()
const;
34 int getBelief()
const;
35 bool reduceBelief(
int amount);
51 static const int MAX_BELIEF = 100;
55 #endif //__RD_TARGET_HPP__
int player_id
Id of the player that is represented by this target.
Definition: Target.hpp:40
The main, catch-all namespace for Robot Devastation.
Definition: groups.dox:4
Vector2d pos
Center of the box that bounds this target.
Definition: Target.hpp:43
int belief
Quantity representing how sure we are that this target can currently be seen by the user's robot.
Definition: Target.hpp:49
Vector2d dimensions
Height and Width of the box that bounds this target.
Definition: Target.hpp:46
Class that represents a target detected. This target is (or should be) associated to a player.
Definition: Target.hpp:18
Target()
Constructs a default, dummy target. (That is invalid for the game, by the way)
Definition: Target.cpp:7