28 lines
567 B
Java
28 lines
567 B
Java
package com.github.dtschust.zork.types;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.HashSet;
|
|
import java.util.List;
|
|
import java.util.Set;
|
|
|
|
/* Container*/
|
|
public class ZorkContainer extends ZorkObject {
|
|
public final Set<String> item = new HashSet<>();
|
|
public final List<String> accept = new ArrayList<>();
|
|
protected boolean open = false;
|
|
|
|
public ZorkContainer(String name, String description) {
|
|
super(name, description);
|
|
}
|
|
|
|
|
|
public boolean isOpen() {
|
|
return open;
|
|
}
|
|
|
|
public void open() {
|
|
open = true;
|
|
}
|
|
|
|
}
|