There are a (smart) way to uniquely identify a object(like a bot, a enemy bot, a AntSpider, titanium cube, ...) using a string or a int? It's useful for inter-bot communication.
For example:
`
extern void object::run() {
object target = radar(Titanium);
string targetID = target.id;
//from somewhere else
object titanium = getObjectByID(targetID);
//Now 'titanium' should be equal to 'target'
}
`
There are a (smart) way to uniquely identify a object(like a bot, a enemy bot, a AntSpider, titanium cube, ...) using a string or a int? It's useful for inter-bot communication.
For example:
`
extern void object::run() {
object target = radar(Titanium);
string targetID = target.id;
}
`