Subversion Repository Public Repository

litesoft

Diff Revisions 947 vs 948 for /trunk/GWT_Sandbox/MultiModuleSingleSrc/main/src/org/litesoft/sandbox/multimodule/anywhere/die/Die.java

Diff revisions: vs.
  @@ -1,38 +1,30 @@
1 1 package org.litesoft.sandbox.multimodule.anywhere.die;
2 2
3 - public class Die
4 - {
3 + public class Die {
5 4 private State mState;
6 5
7 - public Die( Identifier pIdentifier )
8 - {
9 - if ( pIdentifier == null )
10 - {
6 + public Die( Identifier pIdentifier ) {
7 + if ( pIdentifier == null ) {
11 8 pIdentifier = new Identifier( Orientation.R, 1, 2 );
12 9 }
13 10 mState = new State( pIdentifier.getOrientation() );
14 11 mState.adjustTo( pIdentifier );
15 12 }
16 13
17 - public Die()
18 - {
14 + public Die() {
19 15 this( null );
20 16 }
21 17
22 - public Identifier getCurrentIdentifier()
23 - {
18 + public Identifier getCurrentIdentifier() {
24 19 return mState.getIdentifier();
25 20 }
26 21
27 - public int getResult()
28 - {
22 + public int getResult() {
29 23 return mState.getValue();
30 24 }
31 25
32 - public void makeViewResult( View pViewToMakeResult )
33 - {
34 - switch ( pViewToMakeResult )
35 - {
26 + public void makeViewResult( View pViewToMakeResult ) {
27 + switch ( pViewToMakeResult ) {
36 28 default:
37 29 case Result:
38 30 break;
  @@ -54,10 +46,8 @@
54 46 }
55 47 }
56 48
57 - public void makeResult( int pValue )
58 - {
59 - if ( (1 <= pValue) && (pValue <= 6) )
60 - {
49 + public void makeResult( int pValue ) {
50 + if ( (1 <= pValue) && (pValue <= 6) ) {
61 51 makeViewResult( mState.getViewForValue( pValue ) );
62 52 }
63 53 }