summaryrefslogtreecommitdiff
path: root/src/main/java/bjc/esodata/DoubleSided.java
blob: 6ecbdcf30d4d9202eea05dff5385e7944b0d19c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package bjc.esodata;

/**
 * Interface for a double-sided object.
 * 
 * @author bjculkin
 *
 */
public interface DoubleSided {
	/**
	 * Flips the object.
	 *
	 * The active side becomes inactive, and the inactive side becomes
	 * active.
	 */
	void flip();

	/**
	 * Check which side of the object is active;
	 *
	 * @return True if the front side is active, false otherwise.
	 */
	boolean currentSide();
}