This wiki is archived and useful information is being migrated to the main bzflag.org website
BZRobots/API BZRobots vs Robocode
From BZFlagWiki
Revision as of 15:23, 9 July 2007 by Daxxar (Talk | contribs) (New page: =Overview= This page is to describe the changes that have been made to the RoboCode-compliant part of the API to accomodate how BZFlag worsk. = API Changes = == Behaviour changes == * '''...)
Overview
This page is to describe the changes that have been made to the RoboCode-compliant part of the API to accomodate how BZFlag worsk.
API Changes
Behaviour changes
- execute() - No longer "blocks" until the action is completed - it returns immediately unless you're currently completing an action. This also goes for other functions, see their relevant protocol messages in BZRobots/Protocol ("Steady-state required?"). This is because BZFlag is realtime (and RoboCode isn't).
Name changes
- getHeight() - Renamed to getLength(). This is because "height" in three dimensions refers to an different axis than what getHeight in two dimensions (and RoboCode) refers to.