I need to store those variables for each bot my radar detects [from robocode]:
double bearing = e.getBearing();
double energy = e.getEnergy();
double heading = e.getHeading();
double velocity = e.getVelocity();
double distance = e.getDistance();
double lastUpdated = getTime();
String name = e.getName();
The radar get all those informations and I need a way to store then temporaly. I was thinking about using arrays but I just don't know how to apply they correctly on this situation. The information must be like that:
name, lastUpdated, distance, bearing, velocity, heading, energy
I will need retrieve those informations from all or a specific robot [defined by his own name] later, if I use arrays, how could I do that?
Tags: