An NDoc Documented Class Library

Virii Namespace

Classes

ClassDescription
Ammunition Ammunition objects
Bullet 
Bumper 
CollisionEventArgsGeneric collision events stores detailed collision information in the instances of this class
RoboPeer 
Robot

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).

  • The standard unit for measuring angles is radian, passed as float.
  • One unit of distance is approximately (one pixel * 16 /2).
RobotAttribute Customized attribute for robot assumbly
Sonar 
SonarPacket 
Turret 
ViriiArea 
ViriiClient 
ViriiGame Main class implementing the game object This class is responsible for creating the player and area objects
ViriiPlayer 
Weapon Weapons that can be attached to the chassis

Delegates

DelegateDescription
BulletHitBotEventHandler 
BulletHitWallEventHandler 
HitByBulletEventHandler 
HitBySonarEventHandler 
RamRobotEventHandler 
RamWallEventHandler 
SonarHitBotEventHandler 
SonarHitWallEventHandler 

Enumerations

EnumerationDescription
RoboPeer.ClsnTypeLs