Event Codes

From TACWiki
Revision as of 11:46, 18 June 2008 by Brb6127 (Talk | contribs) (New page: Event codes are used by the game to identify events specific to certain criterion for actions the player performs in game. These criterion include information for many of the scientific ex...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Event codes are used by the game to identify events specific to certain criterion for actions the player performs in game. These criterion include information for many of the scientific experiments handled in game, as well as basic event identification for input handling.

The Event codes are grouped into two distinct groups. The first group identifies codes which are universal throughout the game. The second group is defined on a game by game basis, meaning that each internal mini game or the main game itself identify what these codes mean. The universal codes cannot be changed.

Due to the limitations of the parallel port that is used to print out this data in a lab setting, the codes can only range from 0-255, taking up only an 8 bit space.

Universal Codes

0 - The clear code. This is used by the parallel port to sense the data correctly, by monitoring high-to-low and low-to-high measurements. This cannot be changed.

1 - The start code. This code is used to signify a change of state in the application, from one game to another. The related event must have information pertaining to the new state of the application (aka, what game are we entering). As such, following event codes will correspond to that new state until 1 is called again.


Game Specific Codes

Starting from 2-255, all codes and related events are determined and specified by the current game which is running. This allows for the largest number of events and codes for each game possible.