about summary refs log tree commit diff stats
path: root/data/maps/the_impressive/rooms
Commit message (Collapse)AuthorAgeFilesLines
* Converted puzzle symbols to an enumStar Rauchenberger2025-08-203-4/+4
|
* Added the_impressiveStar Rauchenberger2025-08-147-0/+90
ecd687529b9abb48ed42950fabc886f'>^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27


























                                                                                                                          
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.fourisland.fourpuzzle.gamestate.mapview.event.precondition;

import com.fourisland.fourpuzzle.Game;

/**
 *
 * @author hatkirby
 */
public class SwitchPrecondition implements Precondition {
    
    private String switchID;
    
    public SwitchPrecondition(String switchID)
    {
        this.switchID = switchID;
    }
    
    public boolean match() {
        return (Game.getSaveFile().getSwitches().containsKey(switchID) && Game.getSaveFile().getSwitches().get(switchID));
    }

}