ScheduledEvent

From SRASWiki

Jump to: navigation, search

This class inherits from the event class and has the following properties:

  • private $scheduledTime;
  • private $timeStarted;
  • private $applyTo;
  • private $expireTime;
  • private $window;
  • private $attendedBy = array();

It also has the following methods:

Contents

isComplete($currentTime)

This method checks to see if the current event is complete and (using #capableSolution) the outcome of the event. It requires one parameter of the current engine time.

capableSolution($required,$given)

This method determines if an event has finished with a capable solution or not. Returns true if outcome is capable.

decrementRemainingTime()

Decrements the time on the current duration

recallPcs()

Recalls the playable characters from the current event (sets attendedBy back to an empty array).

Personal tools