bags/ConditionalJumpInfo

Source: ConditionalJumpInfo.js:32

File : bags/ConditionalJumpInfo.js
Created : 05/04/2015
By : Francesc Busquets francesc@gmail.com

JClic.js
An HTML5 player of JClic activities
https://projectestac.github.io/jclic.js

  • License: EUPL-1.2

Other

ConditionalJumpInfo

Extends: module:bags/JumpInfo.JumpInfo

This special case of JumpInfo is used in ActivitySequenceJump objects to decide
the type of jump or action to be performed, based on the results obtained by the user when
playing previous JClic activities.

In addition to the standard JumpInfo fields and methods, this class has two public
members where score and time thresholds are stored.

The exact meaning of this members will depend on the type of ConditionalJumpInfo in the
ActivitySequenceJump (it can be upperJump or lowerJump).

Parameters

  • action (string) — Must be one of the described actions.
  • sq (number | string, optional) — Can be the tag of the sequence element to jump to, or its
    cardinal number in the list.
  • threshold (number, optional) — Threshold above or below which the action will be triggered,
    depending on the type of JumpInfo.
  • time (number, optional) — Delay to be applied in automatic jumps.