Examples of toTileValue()


Examples of org.moparscape.msc.gs.model.landscape.MutableTileValue.toTileValue()

    MutableTileValue t = new MutableTileValue(getTileValue(x, y));
    if (dir == 0) {
      t.objectValue |= 1;
      MutableTileValue t1 = new MutableTileValue(getTileValue(x, y - 1));
      t1.objectValue |= 4;
      setTileValue(x, y - 1, t1.toTileValue());
    } else if (dir == 1) {
      t.objectValue |= 2;
      MutableTileValue t1 = new MutableTileValue(getTileValue(x - 1, y));
      t1.objectValue |= 8;
      setTileValue(x - 1, y, t1.toTileValue());
View Full Code Here

Examples of org.moparscape.msc.gs.model.landscape.MutableTileValue.toTileValue()

      setTileValue(x, y - 1, t1.toTileValue());
    } else if (dir == 1) {
      t.objectValue |= 2;
      MutableTileValue t1 = new MutableTileValue(getTileValue(x - 1, y));
      t1.objectValue |= 8;
      setTileValue(x - 1, y, t1.toTileValue());
    } else if (dir == 2) {
      t.objectValue |= 0x10;
    } else if (dir == 3) {
      t.objectValue |= 0x20;
    }
View Full Code Here

Examples of org.moparscape.msc.gs.model.landscape.MutableTileValue.toTileValue()

        } else if (dir == 0) {
          t.objectValue |= 2;
          MutableTileValue t1 = new MutableTileValue(getTileValue(
              x - 1, y));
          t1.objectValue |= 8;
          setTileValue(x - 1, y, t1.toTileValue());
        } else if (dir == 2) {
          t.objectValue |= 4;
          MutableTileValue t1 = new MutableTileValue(getTileValue(x,
              y + 1));
          t1.objectValue |= 1;
View Full Code Here

Examples of org.moparscape.msc.gs.model.landscape.MutableTileValue.toTileValue()

        } else if (dir == 2) {
          t.objectValue |= 4;
          MutableTileValue t1 = new MutableTileValue(getTileValue(x,
              y + 1));
          t1.objectValue |= 1;
          setTileValue(x, y + 1, t1.toTileValue());
        } else if (dir == 4) {
          t.objectValue |= 8;
          MutableTileValue t1 = new MutableTileValue(getTileValue(
              x + 1, y));
          t1.objectValue |= 2;
View Full Code Here

Examples of org.moparscape.msc.gs.model.landscape.MutableTileValue.toTileValue()

        } else if (dir == 4) {
          t.objectValue |= 8;
          MutableTileValue t1 = new MutableTileValue(getTileValue(
              x + 1, y));
          t1.objectValue |= 2;
          setTileValue(x + 1, y, t1.toTileValue());
        } else if (dir == 6) {
          t.objectValue |= 1;
          MutableTileValue t1 = new MutableTileValue(getTileValue(x,
              y - 1));
          t1.objectValue |= 4;
View Full Code Here

Examples of org.moparscape.msc.gs.model.landscape.MutableTileValue.toTileValue()

        } else if (dir == 6) {
          t.objectValue |= 1;
          MutableTileValue t1 = new MutableTileValue(getTileValue(x,
              y - 1));
          t1.objectValue |= 4;
          setTileValue(x, y - 1, t1.toTileValue());
        }
        setTileValue(x, y, t.toTileValue());
      }
    }
View Full Code Here

Examples of org.moparscape.msc.gs.model.landscape.MutableTileValue.toTileValue()

    if (dir == 0) {
      t.objectValue &= 0xfffe;
      MutableTileValue t1 = new MutableTileValue(getTileValue(x, y - 1));
      t1.objectValue &= 65535 - 4;
      setTileValue(x, y - 1, t1.toTileValue());
    } else if (dir == 1) {
      t.objectValue &= 0xfffd;
      MutableTileValue t1 = new MutableTileValue(getTileValue(x - 1, y));
      t1.objectValue &= 65535 - 8;
      setTileValue(x - 1, y, t1.toTileValue());
View Full Code Here

Examples of org.moparscape.msc.gs.model.landscape.MutableTileValue.toTileValue()

      setTileValue(x, y - 1, t1.toTileValue());
    } else if (dir == 1) {
      t.objectValue &= 0xfffd;
      MutableTileValue t1 = new MutableTileValue(getTileValue(x - 1, y));
      t1.objectValue &= 65535 - 8;
      setTileValue(x - 1, y, t1.toTileValue());
    } else if (dir == 2) {
      t.objectValue &= 0xffef;
    } else if (dir == 3) {
      t.objectValue &= 0xffdf;
    }
View Full Code Here

Examples of org.moparscape.msc.gs.model.landscape.MutableTileValue.toTileValue()

        } else if (dir == 0) {
          t.objectValue &= 0xfffd;
          MutableTileValue t1 = new MutableTileValue(getTileValue(
              x - 1, y));
          t1.objectValue &= 65535 - 8;
          setTileValue(x - 1, y, t1.toTileValue());
        } else if (dir == 2) {
          t.objectValue &= 0xfffb;
          MutableTileValue t1 = new MutableTileValue(getTileValue(x,
              y + 1));
          t1.objectValue &= 65535 - 1;
View Full Code Here

Examples of org.moparscape.msc.gs.model.landscape.MutableTileValue.toTileValue()

        } else if (dir == 2) {
          t.objectValue &= 0xfffb;
          MutableTileValue t1 = new MutableTileValue(getTileValue(x,
              y + 1));
          t1.objectValue &= 65535 - 1;
          setTileValue(x, y + 1, t1.toTileValue());
        } else if (dir == 4) {
          t.objectValue &= 0xfff7;
          MutableTileValue t1 = new MutableTileValue(getTileValue(
              x + 1, y));
          t1.objectValue &= 65535 - 2;
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.