blob: 602bdf5d95cb702be72662fe10795ba3e229767d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.fourisland.fourpuzzle.gamestate.mapview.event.precondition;
/**
* A Precondition is an object that helps <b>LayerEvent</b> to determine which
* of its (possibly many) <b>PossibleEvent</b>s is active. PossibleEvents can
* have Preconditions attached to them and when all Preconditions are fulfilled
* (determined by the <code>true</code> return value from <b>match()</b>) and
* there aren't any fulfilled PossibleEvents later in the queue, said
* PossibleEvent will be active.
*
* @author hatkirby
*/
public interface Precondition {
public boolean match();
}
|