Things to try:
- Compile the code and run it. The PixSail is highlighted in green for you to see. In the code's current form, the PixSail controller (in PowerfulAIControllerExample.cpp and .h files) is set to imitate the fleet's signalling system... you can see the result yourself!
- Comment out the PixSail's signalling imitation and see what happens now.
Notes:
- During the lecture discussion last week I indicated that the accuracy of the routine for one ship to obtain the heading of another diminished with increased distance from the target. This has not been implemented. Instead, a ship's heading can be determined with 100% accuracy.
- Each ship has 3 signalling flags that can be set or unset. These may be used to communicate between ships, or to distinguish an enemy from a friend. There is no independent way of determining friend from foe... you will need to use the flags to perform this task! Beware, the PixSail may trick out your ships (see the example provided).
No comments:
Post a Comment