libScoreobject | score.t[336]

The main game score object.

`libScore : PreinitObject`

Superclass Tree (in declaration order)

`libScore`
`PreinitObject`
`ModuleExecObject`
`object`

Summary of Properties

`fullScoreList scoreNotify totalScore`

Inherited from `PreinitObject` :
`execBeforeMe reverseGlobalSymbols`

Inherited from `ModuleExecObject` :
`execAfterMe hasInitialized_ isDoingExec_ isExecuted_`

Summary of Methods

`addToScore_ calcMaxScore execute runScoreNotifier showFullScore showScore showScoreMessage showScoreNoMaxMessage showScoreRank showScoreRankMessage`

``

Inherited from `ModuleExecObject` :
`_execute classExec`

Properties

`fullScoreList` | `score.t[511]`

Vector for the full score achievement list. This is a list of all of the Achievement objects awarded for accomplishments so far.

`scoreNotify` | `score.t[521]`

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` | `score.t[514]`

the total number of points scored so far

Methods

`addToScore_ (points, desc)` | `score.t[349]`

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 ( )` | `score.t[529]`

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 | `score.t[569]`

execute pre-initialization

`runScoreNotifier ( )` | `score.t[411]`

Explicitly run the score notification daemon.

`showFullScore ( )` | `score.t[497]`

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 ( )` | `score.t[420]`

Show the simple score

`showScoreMessage (points, maxPoints, turns)` | `score.t[440]`

show the basic score message

`showScoreNoMaxMessage (points, turns)` | `score.t[449]`

show the basic score message with no maximum

`showScoreRank (points)` | `score.t[460]`

show the score rank message

`showScoreRankMessage (msg)` | `score.t[485]`

show the full message for a given score rank string

Adv3Lite Library Reference Manual
Generated on 28/03/2016 from adv3Lite version 1.5