Package games.stendhal.client.entity

Examples of games.stendhal.client.entity.NPC


   * @param g2d
   *            The graphics to drawn on.
   */
  @Override
  protected void drawTop(final Graphics2D g2d, final int x, final int y, final int width, final int height) {
    NPC npc = (NPC) entity;
    super.drawTop(g2d, x, y, width, height);
       
    if (npc.getIdea() != null) {
      Sprite sprite = SpriteStore.get().getSprite("data/sprites/ideas/" + npc.getIdea() + ".png");
      sprite.draw(g2d, x + (width * 3 / 4), y - 10);
    }

   
  }
View Full Code Here

TOP

Related Classes of games.stendhal.client.entity.NPC

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.