Package org.gamejolt

Examples of org.gamejolt.Trophy


   
    // Achieve a Trophy
    api.achieveTrophy(TROPHY_ID);
   
    //get single trophy and check if it is achieved
    Trophy t = api.getTrophy(TROPHY_ID);
    if (!t.isAchieved()){
      System.err.println("Trophy was achieved, but is not marked achieved...");
    }
   
    // get Userdata
    api.getUser("CROS");
View Full Code Here


    assertTrue(api.achieveTrophy(trophyId));
    assertFalse(api.achieveTrophy(-1));
  }
  @Test
  public void testGetTrophy(){
    Trophy t = api.getTrophy(trophyId);
    assertNotNull(t);
    assertNull(api.getTrophy(-1));
  }
View Full Code Here

TOP

Related Classes of org.gamejolt.Trophy

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.