Examples of Character

Unicode Character Representations

The char data type (and therefore the value that a Character object encapsulates) are based on the original Unicode specification, which defined characters as fixed-width 16-bit entities. The Unicode standard has since been changed to allow for characters whose representation requires more than 16 bits. The range of legal code points is now U+0000 to U+10FFFF, known as Unicode scalar value. (Refer to the definition of the U+n notation in the Unicode standard.)

The set of characters from U+0000 to U+FFFF is sometimes referred to as the Basic Multilingual Plane (BMP). Characters whose code points are greater than U+FFFF are called supplementary characters. The Java 2 platform uses the UTF-16 representation in char arrays and in the String and StringBuffer classes. In this representation, supplementary characters are represented as a pair of char values, the first from the high-surrogates range, (\uD800-\uDBFF), the second from the low-surrogates range (\uDC00-\uDFFF).

A char value, therefore, represents Basic Multilingual Plane (BMP) code points, including the surrogate code points, or code units of the UTF-16 encoding. An int value represents all Unicode code points, including supplementary code points. The lower (least significant) 21 bits of int are used to represent Unicode code points and the upper (most significant) 11 bits must be zero. Unless otherwise specified, the behavior with respect to supplementary characters and surrogate char values is as follows:

In the Java SE API documentation, Unicode code point is used for character values in the range between U+0000 and U+10FFFF, and Unicode code unit is used for 16-bit char values that are code units of the UTF-16 encoding. For more information on Unicode terminology, refer to the Unicode Glossary. @author Lee Boynton @author Guy Steele @author Akira Tanaka @since 1.0

  • javaEffect.characters.Character
    This class is a model to create a character with a race. @author Jack OUTRAN & Thibaut LOCQUET @version 0.1
  • lv.odylab.evemanage.domain.eve.Character
  • model.Character
  • net.cis.common.model.system.Character
    @author SchaeckerM Beinhaltet alle Daten eines Charakters.
  • org.apache.fop.area.inline.Character
    Single character inline area. This inline area holds a single character. @deprecated A TextArea with a single WordArea as its child should be used instead.
  • org.apache.fop.fo.flow.Character
    this class represents the flow object 'fo:character'. Its use is defined by the spec: "The fo:character flow object represents a character that is mapped to a glyph for presentation. It is an atomic unit to the formatter. When the result tree is interpreted as a tree of formatting objects, a character in the result tree is treated as if it were an empty element of type fo:character with a character attribute equal to the Unicode representation of the character. The semantics of an "auto" value for character properties, which is typically their initial value, are based on the Unicode codepoint. Overrides may be specified in an implementation-specific manner." (6.6.3)
  • org.drools.games.adventures.model.Character
  • org.foray.fotree.fo.obj.Character
    A "character" object in XSL-FO.
  • tyrelion.character.Character
    @author imladriel

  • Examples of be.demmel.jgws.entities.Character

        serverData.setMap(map);
      }

      private CharacterData loadCharacterById(P1280_VerifyClient packet, int charId, GameServerSession playerData, MapData map) {
        Character character = this.getCharacterByCharId(charId);

        if (character == null) {
          return null;
        }

        // We found the character, load its data
        ByteBuf appearance = Unpooled.buffer(24);
        appearance = appearance.order(ByteOrder.LITTLE_ENDIAN);
        byte professionPrimary = character.getProfessionprimary();
        byte professionSecondary = character.getProfessionSecondary();
        int level = character.getLevel();
        int skillPointsFree = character.getSkillPointsFree();
        int skillPointsTotal = character.getSkillPointsTotal();
        int attrPtsFree = character.getAttributePointsFree();
        int attrPtsTotal = character.getAttributePointsTotal();
        appearance.writeByte((character.getLookHeight() << 4) | (character.getLookSex()));
        appearance.writeByte((character.getLookHairColor() << 4) | (character.getLookSkinColor()));
        appearance.writeByte((professionPrimary << 4) | (character.getLookHairStyle()));
        appearance.writeByte((character.getLookCampaign() << 4) | (character.getLookSex()));

        String charName = character.getCharName();

        // Get spawn point (random from the list of spawn points (zero-based)
        Random r = new Random();
        int chosenSpawnPointIndex = r.nextInt(map.getPossibleSpawns().size());
        GWVector chosenSpwwnPoint = map.getPossibleSpawns().get(chosenSpawnPointIndex);

        if (!map.isIsPve() && playerData.getTeamNumber() < map.getPossibleSpawns().size()) {
          chosenSpwwnPoint = map.getPossibleSpawns().get(playerData.getTeamNumber());
        }

        Account account = this.getAccountByAccountId(playerData.getAccId());

        if (account == null) {
          return null;
        }

        int groupId = account.getGroupId();

        Group group = this.getGroupByGroupId(groupId);
        if (group == null) {
          return null;
        }

        String groupPrefix = group.getGroupPrefix();
        byte groupChatColor = group.getGroupChatColor();

        CharacterData characterData = new CharacterData();
        characterData.setCharID(charId);
        characterData.setName(charName);

        characterData.setGameFileID(map.getGameFileID());
        characterData.setGameMapID(map.getGameMapID());
        characterData.setIsOutpost(map.isIsOutpost());

        characterData.setProfessionPrimary(professionPrimary);
        characterData.setProfessionSecondary(professionSecondary);
        characterData.setLevel(level);
        characterData.setMorale(100);
        characterData.setHealth(12345);
        characterData.setEnergy(1337);


        byte[] skillBar = character.getSkillBar();
        byte[] skillsUnlocked = character.getSkillsAvailable();

        characterData.setAttPtsFree(attrPtsFree);
        characterData.setAttPtsTotal(attrPtsTotal);

        characterData.setAppearance(appearance.array());
    View Full Code Here

    Examples of ca.wowapi.entities.Character

      public Character getCharacterAllInfo(String name, String realm, String region) {
        return this.getCharacterAllInfo(name, realm, region, 0);
      }

      public Character getCharacterAllInfo(String name, String realm, String region, long lastModified) {
        Character character = null;

        String URL = CHARACTER_API_URL + "?fields=items,guild,achievements";
        String finalURL = URL.replace("%region", region).replace("%realm", encode(realm)).replace("%name", encode(name));
        try {
          JSONObject jsonobject = getJSONFromRequest(finalURL, lastModified);

          character = this.getCharacterBasicInfo(name, realm, region);
          JSONArray jarrayAchievementsCompleted = jsonobject.getJSONObject("achievements").getJSONArray("achievementsCompleted");
          JSONArray jarrayAchievementsCompletedTimestamp = jsonobject.getJSONObject("achievements").getJSONArray("achievementsCompletedTimestamp");
          JSONArray jarrayCriteria = jsonobject.getJSONObject("achievements").getJSONArray("criteria");
          JSONArray jarrayCriteriaQuantity = jsonobject.getJSONObject("achievements").getJSONArray("criteriaQuantity");
          JSONArray jarrayCriteriaTimestamp = jsonobject.getJSONObject("achievements").getJSONArray("criteriaTimestamp");

          List<Achievement> achievementList = new ArrayList<Achievement>();
          for (int i = 0; i < jarrayAchievementsCompleted.length(); i++) {
            Achievement achievemenet = new Achievement();
            achievemenet.setAid(jarrayAchievementsCompleted.getInt(i));
            achievemenet.setTimestamp(jarrayAchievementsCompletedTimestamp.getLong(i));
            achievemenet.setCompleted(true);
            achievemenet.setCriteriaQuantity(1);
            achievementList.add(achievemenet);
          }
          character.setAchievements(achievementList);

          achievementList = new ArrayList<Achievement>();
          for (int i = 0; i < jarrayCriteria.length(); i++) {
            Achievement achievemenet = new Achievement();
            achievemenet.setAid(jarrayCriteria.getInt(i));
            achievemenet.setTimestamp(jarrayCriteriaTimestamp.getLong(i));
            achievemenet.setCriteriaQuantity(jarrayCriteriaQuantity.getLong(i));
            achievemenet.setCompleted(false);
            achievementList.add(achievemenet);
          }
          character.setCriteria(achievementList);

        } catch (Exception e) {
          e.printStackTrace();
        }
        return character;
    View Full Code Here

    Examples of clueless.model.Character

         
          //Store what card is selected
          if(button instanceof CharacterButton)
          {
            CharacterButton character = (CharacterButton)button;
            selectedCharacter = new Character(character.getType());
          }
          else if(button instanceof WeaponButton)
          {
            WeaponButton weapon = (WeaponButton)button;
            selectedWeapon = new Weapon(weapon.getType());
    View Full Code Here

    Examples of com.aldaviva.autorpg.data.entities.Character

        ListView<Character> characterList = new ListView<Character>("character", allCharactersModel){
          private static final long serialVersionUID = 1L;

          @Override
          protected void populateItem(ListItem<Character> item) {
            Character character = item.getModelObject();
           
            item.add(new Label("name", new PropertyModel<Character>(character, "name")));
           
            item.add(new PositionStyleAppender("left", new PropertyModel<Integer>(character, "location.x")));
            item.add(new PositionStyleAppender("top", new PropertyModel<Integer>(character, "location.y")));
    View Full Code Here

    Examples of com.gwesm.core.Character

      public static void main(final String[] args) throws DAOException {

        DAO dao = new CastorDAO();
        GWESM gwesm = dao.loadData("testsData\\GWESM-Sample.xml");

        Character character = gwesm.getAccounts().get(0).getCharacters().get(0);

        Display display = new Display();
        final Shell shell = new Shell(display, SWT.CLOSE | SWT.TITLE | SWT.MIN);
        shell.setLayout(new FillLayout());
    View Full Code Here

    Examples of gwlpr.database.entities.Character

            }
            EntityManager em = null;
            try {
                em = getEntityManager();
                em.getTransaction().begin();
                Character customizedFor = item.getCustomizedFor();
                if (customizedFor != null) {
                    customizedFor = em.getReference(customizedFor.getClass(), customizedFor.getId());
                    item.setCustomizedFor(customizedFor);
                }
                Itembase baseID = item.getBaseID();
                if (baseID != null) {
                    baseID = em.getReference(baseID.getClass(), baseID.getId());
                    item.setBaseID(baseID);
                }
                Collection<Itemstat> attachedItemstatCollection = new ArrayList<Itemstat>();
                for (Itemstat itemstatCollectionItemstatToAttach : item.getItemstatCollection()) {
                    itemstatCollectionItemstatToAttach = em.getReference(itemstatCollectionItemstatToAttach.getClass(), itemstatCollectionItemstatToAttach.getItemstatPK());
                    attachedItemstatCollection.add(itemstatCollectionItemstatToAttach);
                }
                item.setItemstatCollection(attachedItemstatCollection);
                Collection<Storeditem> attachedStoreditemCollection = new ArrayList<Storeditem>();
                for (Storeditem storeditemCollectionStoreditemToAttach : item.getStoreditemCollection()) {
                    storeditemCollectionStoreditemToAttach = em.getReference(storeditemCollectionStoreditemToAttach.getClass(), storeditemCollectionStoreditemToAttach.getStoreditemPK());
                    attachedStoreditemCollection.add(storeditemCollectionStoreditemToAttach);
                }
                item.setStoreditemCollection(attachedStoreditemCollection);
                Collection<Weapon> attachedWeaponCollection = new ArrayList<Weapon>();
                for (Weapon weaponCollectionWeaponToAttach : item.getWeaponCollection()) {
                    weaponCollectionWeaponToAttach = em.getReference(weaponCollectionWeaponToAttach.getClass(), weaponCollectionWeaponToAttach.getId());
                    attachedWeaponCollection.add(weaponCollectionWeaponToAttach);
                }
                item.setWeaponCollection(attachedWeaponCollection);
                Collection<Weapon> attachedWeaponCollection1 = new ArrayList<Weapon>();
                for (Weapon weaponCollection1WeaponToAttach : item.getWeaponCollection1()) {
                    weaponCollection1WeaponToAttach = em.getReference(weaponCollection1WeaponToAttach.getClass(), weaponCollection1WeaponToAttach.getId());
                    attachedWeaponCollection1.add(weaponCollection1WeaponToAttach);
                }
                item.setWeaponCollection1(attachedWeaponCollection1);
                em.persist(item);
                if (customizedFor != null) {
                    customizedFor.getItemCollection().add(item);
                    customizedFor = em.merge(customizedFor);
                }
                if (baseID != null) {
                    baseID.getItemCollection().add(item);
                    baseID = em.merge(baseID);
    View Full Code Here

    Examples of java.lang.Character

            {

                    StatementNode stmt = (StatementNode) nodeFactory.getNode(
                                                                    C_NodeTypes.DROP_ALIAS_NODE,
                                                                    aliasName,
                                                                    new Character(type),
                                                                    getContextManager());

                    return stmt;
            }
    View Full Code Here

    Examples of java.lang.Character

                    {if (true) return (QueryTreeNode) nodeFactory.getNode(
                                                                    C_NodeTypes.CREATE_TABLE_NODE,
                                                                    tableName,
                                                                    tableElementList,
                                                                    properties,
                                                                    new Character(lockGranularity),
                                                                    getContextManager());}
        throw new Error("Missing return statement in function");
      }
    View Full Code Here

    Examples of java.lang.Character

            lockGranularity = alterTableAction(tableElementList, changeType, behavior, sequential);
                    {if (true) return (QueryTreeNode) nodeFactory.getNode(
                                                            C_NodeTypes.ALTER_TABLE_NODE,
                                                            tableName,
                                                            tableElementList,
                                                            new Character(lockGranularity),
                                                            changeType,
                                                            behavior,
                                                            sequential,
                                                            getContextManager());}
          } else {
    View Full Code Here

    Examples of java.lang.Character

            {

                    StatementNode stmt = (StatementNode) nodeFactory.getNode(
                                                                    C_NodeTypes.DROP_ALIAS_NODE,
                                                                    aliasName,
                                                                    new Character(type),
                                                                    getContextManager());

                    return stmt;
            }
    View Full Code Here
    TOP
    Copyright © 2018 www.massapi.com. 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.