Package lev

Examples of lev.LFlags


        MajorRecord out = (MajorRecord) this.getNew();
        out.formVersion = this.formVersion;
        out.version = Arrays.copyOf(this.version, this.version.length);
        out.srcMod = modToOriginateFrom;
        out.ID = new FormID();
        out.majorFlags = new LFlags(majorFlags);
        System.arraycopy(revision, 0, out.revision, 0, revision.length);
        System.arraycopy(version, 0, out.version, 0, version.length);
        out.subRecords = new SubRecordsCopied(subRecords);
        out.setEDID(edid);
        modToOriginateFrom.addRecord(out);
View Full Code Here


    @Override
    void parseData(LImport in, Mod srcMod) throws BadRecord, DataFormatException, BadParameter {
        super.parseData(in, srcMod);

        majorFlags = new LFlags(in.extract(4));
        ID.parseData(in, srcMod);
        revision = in.extract(4);
        formVersion = in.extractInt(2);
        version = in.extract(2);
View Full Code Here

        in.openFile(filePath);
        if (!in.extractString(0, 3).equals("BSA") || in.extractInt(1, 4) != 104) {
            throw new BadParameter("Was not a BSA file of version 104: " + filePath);
        }
        offset = in.extractInt(0, 4);
        archiveFlags = new LFlags(in.extract(0, 4));
        folderCount = in.extractInt(0, 4);
        folders = new HashMap<>(folderCount);
        fileCount = in.extractInt(0, 4);
        folderNameLength = in.extractInt(0, 4);
        fileNameLength = in.extractInt(0, 4);
        fileFlags = new LFlags(in.extract(0, 4));
        if (SPGlobal.debugBSAimport && SPGlobal.logging()) {
            SPGlobal.logSpecial(LogTypes.BSA, header, "|==================>");
            SPGlobal.logSpecial(LogTypes.BSA, header, "| Imported " + filePath);
            SPGlobal.logSpecial(LogTypes.BSA, header, "| Offset " + offset + ", archiveFlags: " + archiveFlags);
            SPGlobal.logSpecial(LogTypes.BSA, header, "| hasDirectoryNames: " + archiveFlags.get(0) + ", hasFileNames: " + archiveFlags.get(1) + ", compressed: " + archiveFlags.get(2));
View Full Code Here

                    SPGlobal.logSpecial(LogTypes.BSA, header, "Loaded folder: " + folder.name);
                }
                for (int j = 0; j < folder.fileCount; j++) {
                    BSAFileRef f = new BSAFileRef();
                    f.size = in.extractInt(8, 3); // Skip Hash
                    LFlags sizeFlag = new LFlags(in.extract(1));
                    f.flippedCompression = sizeFlag.get(6);
                    f.dataOffset = in.extractLong(0, 4);
                    fileName = fileNames.extractString();
                    folder.files.put(fileName.toUpperCase(), f);
                    if (SPGlobal.logging()) {
                        SPGlobal.logSpecial(LogTypes.BSA, header, "  " + fileName + ", size: " + Ln.prettyPrintHex(f.size) + ", offset: " + Ln.prettyPrintHex(f.dataOffset));
View Full Code Here

    /**
     *
     * @param t
     */
    public void setProjType(ProjectileType t) {
  LFlags flags = getDATA().projType;
  flags.clear();
  flags.set(t.ordinal(), true);
    }
View Full Code Here

        }
       
        @Override
        void parseData(LImport in, Mod srcMod) throws BadRecord, DataFormatException, BadParameter {
            super.parseData(in, srcMod);
            flags = new LFlags(in.extract(1));
        }
View Full Code Here

  void copy(AttackDataInternal rhs) {
      damageMult = rhs.damageMult;
      attackChance = rhs.attackChance;
      attackSpell = new FormID(rhs.attackSpell);
      flags = new LFlags(rhs.flags);
      attackAngle = rhs.attackAngle;
      strikeAngle = rhs.strikeAngle;
      stagger = rhs.stagger;
      attackType = new FormID(rhs.attackType);
      knockDown = rhs.knockDown;
View Full Code Here

  @Override
  final void parseData(LImport in, Mod srcMod) throws BadRecord, DataFormatException, BadParameter {
      super.parseData(in, srcMod);

      baseCost = in.extractInt(4);
      flags = new LFlags(in.extract(4));
      baseType = in.extractInt(4);
      chargeTime = in.extractFloat();
      castType = CastType.values()[in.extractInt(4)];
      targetType = DeliveryType.values()[in.extractInt(4)];
      castDuration = in.extractFloat();
View Full Code Here

        }

        @Override
        void parseData(LImport in, Mod srcMod) throws BadRecord, DataFormatException, BadParameter {
            super.parseData(in, srcMod);
            bodyParts = new LFlags(in.extract(4));
            if (isBODT()) {
                flags = new LFlags(in.extract(4));
            }
            if (!in.isDone()) {
                armorType = ArmorType.values()[in.extractInt(4)];
            }
            valid = true;
View Full Code Here

class SubFlag extends SubRecordTyped {
    LFlags flags;

    SubFlag(String type_, int size) {
  super(type_);
  flags = new LFlags(size);
    }
View Full Code Here

TOP

Related Classes of lev.LFlags

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.