VbRoboCode: Events, methods, and properties

To give you some idea what it’s like to program VbRoboCode, I’ll list some of the events, methods, and properties available. Here’s a list of the events a bot can respond to:

  • OnBulletFired
  • OnBulletHit
  • OnBulletHitBullet
  • OnBulletHitRobot
  • OnBulletHitWall
  • OnChassisMoveComplete
  • OnChassisTurnComplete
  • OnDied
  • OnGunTurnComplete
  • OnRadarTurnComplete
  • OnRobotDied
  • OnRobotHit
  • OnRobotScanned
  • OnTickComplete
  • OnWallHit
  • OnWon

Here’s a list of methods you can call to bring your bot to life:

  • ChassisTurnLeft/Right
  • Fire
  • Forward/Reverse
  • GunTurnLeft/Right
  • Init
  • Msg
  • Paint
  • PlanMove
  • RadarTurnLeft/Right
  • ResetPlan
  • TurnLeft/Right

And finally, some properties:

  • At
  • Energy
  • GunAngle
  • Id
  • IsChassisMoving
  • IsChassisTurning
  • IsFiring
  • IsGunCool
  • IsGunTurning
  • IsRadarTurning
  • Name
  • RadarAngle
  • Vector
Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • del.icio.us
  • Facebook
  • Google
  • Reddit
  • StumbleUpon
  • Technorati

Leave a Reply