Package com.aldaviva.autorpg.display.bulletin

Examples of com.aldaviva.autorpg.display.bulletin.Bulletin


      return "You were not logged in to start with.";
    }
  }

  private Bulletin createCharactersDepartedBulletin(List<Character> characters) {
    Bulletin bulletin = new Bulletin();
   
    if(!characters.isEmpty()){
      List<String> characterNames = new ArrayList<String>();
      for (Character character : characters) {
        characterNames.add(character.getName());
      }
     
      String namesList = Utils.commaAndList(characterNames);
     
      if(characters.size() == 1){
        namesList += " has left.";
      } else {
        namesList += " have left.";
      }
     
      bulletin.add(namesList);
    }

    return bulletin;
  }
View Full Code Here

TOP

Related Classes of com.aldaviva.autorpg.display.bulletin.Bulletin

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.