summary refs log tree commit diff stats
path: root/src/com/fourisland/fourpuzzle/gamestate/mapview/event/precondition/Precondition.java
blob: 46cdcd26c0bc81d7f1b56198b6d6b24a4cbbd793 (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 are not fulfilled PossibleEvents later in the queue, said PossibleEvent
 * will be active.
 *
 * @author hatkirby
 */
public interface Precondition {

    public boolean match();
    
}