The base class to be extended to create your customized robot. You have to extend this class in order to create your customized robot. You AI code can interact with the game by handling the events and making calls to the command methods.
Events can be handled in a few different ways depending on your needs. The easiest and most traditional way is to override event handlers from this class. e.g. You can override the virtual method OnRamRobot(), and it will be called when your bot hits another robot in the arena.
Alternatively, you can create a delegate to handle the event. You can create multiple delegates and attache them to the same event, thus creating a multicast event, and delegates can be added or removed on the fly. e.g. To add a new delegate to the RamRobotEvent: RamRobotEvent += new RamRobotEventHandler(YourMethod), where YourMethod is the method you created to handle the event. Note: The event delegates will not be called if you have already handled that particular event by override (described as the first method).
For a list of all members of this type, see Robot Members.
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
Assembly: Virii (in Virii.dll)