Changes between Version 1 and Version 2 of ProtocolZero
- Timestamp:
- May 27, 2011 2:23:29 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ProtocolZero
v1 v2 16 16 == Specification == 17 17 At this point let's just list stuff we want it to be able to do with wild abandon, and then have our starstruck dreams shattered by their impossibility. All the below commands should be prefixable with "now" or "then" to determine where they go on the queue. All commands should start with a letter, not a number or other character. Commands should not have spaces other than to separate parameters. Obviously some of these need renaming. 18 19 '''INITIAL COMMANDS''' 20 * General management 21 * ready - switches the bot into the live state, spawning the bot. No more initial commands can be given, but live commands can now be given. 22 * botfile [NAME] - selects the botfile to use for the bot 23 * team [NAME] - puts the bot on red/blue team if game is in team mode 24 * spawnloc [LOCATION] - selects where the bot will start 25 * name [NAME] - sets chatname of bot 26 27 '''LIVE COMMANDS''' 28 18 29 * Basic robot-like functions for users who want low-level fine control. (Implement first) 19 30 * walkby [DISTANCE] - the bot moves forward until it reaches the distance or strikes an obstacle, in which case it reports so. … … 43 54 == Implementation == 44 55 Each of these behaviours will be modelled as an ai_node function. Parameters will be saved in the bot state struct, which gets passed to these functions. 56 57 == WalterAPI == 58 Walter mentioned to me that he would like implementations of the following functions, they seem pretty possible: 59 * SENSORS 60 * current_health 61 * max_health 62 * current_armor 63 * max_armor 64 * current_location 65 * current_item 66 * ACTIONS 67 * player_use 68 * player_move_forward [DIST] 69 * player_move_backward [DIST] 70 * player_move_left [DIST] 71 * player_move_right [DIST] 72 * view_rotate_left [DIST] 73 * view_rotate_right [DIST] 74 * view_rotate_up [DIST] 75 * view_rotate_down [DIST] 76 * player_crouch 77 * player_jump 78 * weapon_fire 79 * weapon_alternate 80 * weapon_switch [WEAPON]