Package org.scotlandyard.impl.engine

Examples of org.scotlandyard.impl.engine.TokenImpl


      if(this.tokens.get(game)==null){
        this.tokens.put(game, new EnumMap<TransportationMethod, Token>(TransportationMethod.class));
      }
     
      // create new token and add it
      final Token token = new TokenImpl(this,transportation);
      token.setNumberOfTickets(numberOfTickets);
      this.tokens.get(game).put(transportation, token);
     
      //to make sure we got everything right
      final Token tokens = this.tokens.get(game).get(transportation);
      boolean result;
View Full Code Here


      GameEngine.instance().clearRecords();
    }
   
    @Before  //TODO add description here
    public void setUp()throws Exception{
      token = new TokenImpl(player, transportation);
    }
View Full Code Here

      token = new TokenImpl(player, transportation);
    }
   
  @Test  //TODO add description here
  public final void testTokenImpl() {
    final Token temp =new TokenImpl(player,transportation);
                Assert.assertEquals(token.getNumberOfTokens(), temp.getNumberOfTokens());
        }
View Full Code Here

TOP

Related Classes of org.scotlandyard.impl.engine.TokenImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.