libScoreobject
The main game score object.
libScore
:
PreinitObject
Superclass Tree (in declaration order)
libScore
PreinitObject
ModuleExecObject
` object`
Summary of Properties
fullScoreList
scoreNotify
totalScore
Inherited from ModuleExecObject
:
execAfterMe
execBeforeMe
hasInitialized_
isDoingExec_
isExecuted_
Summary of Methods
addToScore_
calcMaxScore
execute
runScoreNotifier
showFullScore
showScore
showScoreRank
Inherited from ModuleExecObject
:
_execute
classExec
Properties
fullScoreList
Vector for the full score achievement list. This is a list of all of the Achievement objects awarded for accomplishments so far.
scoreNotify
current score notification status - if on, we’ll show a message at the end of each turn where the score changes, otherwise we won’t mention anything
totalScore
the total number of points scored so far
Methods
addToScore_ (points, desc)
Add to the score. ‘points’ is the number of points to add to the score, and ‘desc’ is a string describing the reason the points are being awarded, or an Achievement object describing the points.
We keep a list of each unique achievement. If ‘desc’ is already in this list, we’ll simply add the given number of points to the existing entry for the same description.
Note that, if ‘desc’ is an Achievement object, it will match a previous item only if it’s exactly the same Achievement instance.
calcMaxScore ( )
Compute the sum of the maximum point values of the Achievement objects in the game. Point values are optional in Achievement objects; if there are no Achievement objects with non-nil point values, this will simply return nil.
execute ( )
OVERRIDDEN
execute pre-initialization
runScoreNotifier ( )
Explicitly run the score notification daemon.
showFullScore ( )
Display the full score. ‘explicit’ is true if the player asked for the full score explicitly, as with a FULL SCORE command; if we’re showing the full score automatically in the course of some other action, ‘explicit’ should be nil.
showScore ( )
Show the simple score
showScoreRank (points)
show the score rank message
TADS 3 Library Manual
Generated on 5/16/2013 from TADS version 3.1.3