Exemple #1
0
 public List<String> getClosedScenariosId() {
   List<String> l = new ArrayList<String>();
   if (closedScenarios != null)
     for (ScenarioReference s : closedScenarios) {
       l.add(s.getId());
     }
   return l;
 }
Exemple #2
0
 public void updateCharacter(String scenarioId, CharacterReference charRef) {
   if (openScenarios != null) {
     for (ScenarioReference r : openScenarios) {
       if (r.getId().equals(scenarioId)) {
         if (r.getMyCharacterId().equals(charRef.getId())) {
           r.setMyCharacterName(charRef.getCharacterName());
           /*TODO togliere setCover perché probabilmente non serve (url cover fisso)*/
           r.setMyCharacterCover(charRef.getCharacterCover());
         }
         break;
       }
     }
   }
 }