litesoft
@ 538
litesoft / trunk / GWT_Sandbox / MultiModule / common / src / org / litesoft / sandbox / multimodule / common / anywhere / die / Die.java
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 28 |
package org.litesoft.sandbox.multimodule.common.anywhere.die; public class Die { private Identifier mCurrentFaceIdentifier; public Die( Identifier pCurrentFaceIdentifier ) { mCurrentFaceIdentifier = (pCurrentFaceIdentifier != null) ? pCurrentFaceIdentifier : new Identifier( Orientation.R, 1, 2 ); } public Die() { this(null); } public Identifier getCurrentFaceIdentifier() { return mCurrentFaceIdentifier; } public int getFace() { return mCurrentFaceIdentifier.getFace(); } } |