Package generic.gui.mapElement

Examples of generic.gui.mapElement.BarElement


        0.7f));
    int heightLife = 10;
    int yLife = HEIGHT - HEIGHT_HEALTH_BAR;
    int widthLife = WIDTH;

    BarElement physicalBar = new BarElement(Color.RED, Color.GREEN);
    BarElement stunBar = new BarElement(Color.RED, Color.BLUE);

    float physical = character.getPhysicalPoint().floatValue();
    float physicalDamage = character.getPhysicalDamage().floatValue();
    float probPhysical = 1 - (physicalDamage / physical);

    float stun = character.getStunPoint().floatValue();
    float stunDamage = character.getStunDamage().floatValue();
    float probStun = 1 - (stunDamage / stun);

    physicalBar.drawBar(g2, 0, yLife, heightLife, widthLife, probPhysical);

    stunBar.drawBar(g2, 0, yLife - heightLife, heightLife, widthLife,
        probStun);
  }
View Full Code Here


  private MapElementSize height;

  private transient BarElement damageBar;

  public PathfinderMonsterElement() {
    damageBar = new BarElement(Color.RED, Color.GREEN);
  }
View Full Code Here

    super(point);

    this.monsterId = characterId;
    width = new MapElementSizeSquare(1);
    height = new MapElementSizeSquare(1);
    damageBar = new BarElement(Color.RED, Color.GREEN);
  }
View Full Code Here

  private MapElementSize height;

  private transient BarElement damageBar;

  public PathfinderCharacterElement() {
    damageBar = new BarElement(Color.RED, Color.GREEN);
  }
View Full Code Here

    this.charactedId = characterId;
    width = new MapElementSizeSquare(1);
    height = new MapElementSizeSquare(1);

    damageBar = new BarElement(Color.RED, Color.GREEN);
  }
View Full Code Here

  private transient BarElement physicalBar;
  private transient BarElement stunBar;

  public ShadowrunCharacterElement() {
    physicalBar = new BarElement(Color.RED, Color.GREEN);
    stunBar = new BarElement(Color.RED, Color.BLUE);
  }
View Full Code Here

    this.charactedId = characterId;
    width = new MapElementSizeSquare(1);
    height = new MapElementSizeSquare(1);

    physicalBar = new BarElement(Color.RED, Color.GREEN);
    stunBar = new BarElement(Color.RED, Color.BLUE);
  }
View Full Code Here

TOP

Related Classes of generic.gui.mapElement.BarElement

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.