en_us.hfile | source file |
Classes Summary | Functions Summary Details | Macros Summary Details | Enums Summary Details | Templates Summary Details |
TADS 3 Library - US English header
This file defines common properties, macros, and other identifiers used throughout the US English modules of the TADS 3 library.
dobjList
iobjList
setPastTense
singleDir
singleDobj
singleIobj
singleLiteral
singleNumber
singleTopic
tSel
VerbRule
withPast
withPresent
Actor
DeadEndConnector
Enterable
Exitable
NoTravelMessage
OneWayRoomConnector
Passage
Room
Thing
ThingState
TravelMessage
Unthing
VocabObject
dobjList | en_us.h[158] |
nounList->dobjMatch
iobjList | en_us.h[159] |
nounList->iobjMatch
setPastTense (val) | en_us.h[175] |
(gameMain.usePastTense = (val))
singleDir | en_us.h[163] |
directionName->dirMatch
singleDobj | en_us.h[156] |
singleNoun->dobjMatch
singleIobj | en_us.h[157] |
singleNoun->iobjMatch
singleLiteral | en_us.h[162] |
literalPhrase->literalMatch
singleNumber | en_us.h[160] |
numberPhrase->numMatch
singleTopic | en_us.h[161] |
topicPhrase->topicMatch
tSel (presVal, pastVal) | en_us.h[181] |
(gameMain.usePastTense ? (pastVal) : (presVal))
VerbRule (tag) | en_us.h[155] |
grammar predicate(tag):
A command's grammar is defined via a 'grammar' rule definition for the 'predicate' production; the VerbRule macro can be used for better readability.
Within a command grammar rule, there are several commonly-used object roles assigned to single-noun or noun-list phrases. We provide the singleDobj, dobjList, singleIobj, and iobjList macros to make these assignments more readable. In addition, number, topic, literal, and direction phrases can be assigned with singleNumber, singleTopic, singleLiteral, and singleDir, respectively.
withPast (callback) | en_us.h[189] |
(withTense(true, (callback)))
withPresent (callback) | en_us.h[188] |
(withTense(nil, (callback)))
Actor | en_us.h[94] |
'vocabWords' 'name' @location? "npcDesc";
DeadEndConnector | en_us.h[126] |
'apparentDestName'? "travelDesc" | [eventList];
Enterable | en_us.h[112] |
->connector inherited;
Exitable | en_us.h[113] |
->connector inherited;
NoTravelMessage | en_us.h[125] |
"travelDesc" | [eventList];
OneWayRoomConnector | en_us.h[106] |
->destination;
Passage | en_us.h[100] |
->masterObject inherited;
Room | en_us.h[87] |
'roomName' 'destName'? 'name'? "desc"?;
Thing | en_us.h[80] |
'vocabWords' 'name' @location? "desc"?;
ThingState | en_us.h[135] |
'listName_' +listingOrder?;
TravelMessage | en_us.h[119] |
->destination "travelDesc" | [eventList];
Unthing | en_us.h[132] |
'vocabWords' 'name' @location? 'notHereMsg'?;
VocabObject | en_us.h[74] |
'vocabWords';