StateModel SM /* The State model. */ { SMid StateModelId c8 1 /* the primary key */ Abbrev AbbreviatedName c4 0 /* the short version of the name */ Name StateModelName t80 0 /* it's name */ } ActiveClass AC /* Table of Active Classes */ { ACid ActiveClassId c8 1 /* the primary key */ SMid ActiveClassesStateModel c8 1 /* the state model for this class */ Name ActiveClassName t80 0 /* the name of the Active Class */ } ActiveInstance AI /* Active Instance */ { AIid ActiveInstanceId c8 1 /* the primary key */ ACid ActiveInstanceInThisClass c8 1 /* the active class of this AI */ State ActiveInstancesCurrentState t80 0 /* Name of current state */ Name ActiveInstanceName t80 0 /* full name - useful for debugging*/ } EventType ET /* EventType */ { ETid EventTypeId c8 1 /* the primary key */ SMid EventTypesReceiver c8 1 /* NULL-SM table not yet implemented*/ Label EventTypesLabel t8 0 /* the event type name of this event */ Descrip EventTypesDescription t80 0 /* description of event's purpose and meaning */ } EventInstance EI /* An EventInstance */ { EIid EventInstanceId c8 1 /* the primary key */ AIid1 EventInstanceGenerater c8 1 /* NULL-AI table not yet implemented*/ AIid2 EventInstanceReceiver c8 1 /* NULL-AI table not yet implemented*/ ETid EventInstancesType c8 1 /* foreign key to EventType table */ Int1 EventInstanceDataInt1 i4 0 /* x-coordinate */ Int2 EventInstanceDataInt2 i4 0 /* y-coordinate */ Flt1 EventInstanceDataDbl1 f8 0 /* the third (float) argument */ Flt2 EventInstanceDataDbl2 f8 0 /* the fourth (float) argument */ Text EventInstanceDataText t80 0 /* button label */ } /* ++++++++++++++++++ Begin DBDE Additions ++++++++++++++++++++++++ */ Header HD /* Header Record */ { HDid HeaderId c8 1 /* Primary Key */ EIid EventInstanceId c8 1 /* the foreign key */ PKtyp PacketType i4 0 /* Packet Type */ PkLen PacketLength i4 0 /* Packet Length */ } Card CD /* Card */ { CDid CardID c8 1 /* Primary Key */ DKid DeckID c8 1 /* Foreign Key */ Layout Layout i4 0 /* integer 0-81 (or 0-11) describing card number (add 1 when displayed)*/ Dimension Dimension i4 0 /* integer 0-2 describing solid, outlined, or lined */ Shape Shape i4 0 /* integer 0-2 describing card shape (square, circle, triangle) */ Color Color i4 0 /* integer 0-2 desribing card color (red, blue, green) */ Number Number i4 0 /* integer 0-2 describing number of shapes on card (add 1 when displayed) */ } Deck DK /* Deck of cards */ { DKid DeckID c8 1 /* Primary Key */ DKPurpose DeckPurpose t80 0 /* A description of the deck */ }