Sample controllers
There are several very simple pawn controller programs included. While their logic is extremely simplistic, they're useful for seeing how to interact with the API and build up scenarios.
- TestTank - Controls a single pawn. Changes speed and direction constantly. Doesn't use scanners, weapons, or tools. Is useful as cannon fodder and seeing how to write a very basic controller.
- FixedTank - Controls a single pawn. Never changes direction or speed. If it has a turret, it tries firing at whoever is closest. If it has a mine layer, it lays mines whenever anyone is directly behind it. It can use either radar or a perfect scanner.
- FollowerTank - Controls a single pawn. It goes after the nearest pawn as quickly as possible. If it has a turret, it fires at the closest pawn. If it has a mine layer, it lays all its mines as fast as it can. It can use either radar or a perfect scanner.
- ScannerSwarm - Controls a group of pawns. It expects that one pawn will have a turret but no scanner and all the rest of the pawns will have a perfect scanner but no weapons. It expects all pawns will have a GPS so the pawn with a turret can be told where to fire based on scans from the scanner pawns. It also assumes that all pawns have the first name of their identity in common. This allows it to differentiate between enemy and friendly pawns. The pawn with the turret will attempt to fire at the enemy pawn which is closest to it. Currently the swarm makes no attempt to change speed or direction.