Advertisement
Guest User

Gameframe

a guest
Jan 9th, 2014
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.65 KB | None | 0 0
  1. package org.astrect.gameframe;
  2.  
  3. import org.astrect.Game;
  4.  
  5. /**
  6.  * The main game frame rendering.
  7.  *
  8.  * @author Steve Kreitzer
  9.  */
  10. public abstract class Gameframe {
  11.  
  12.     /**
  13.      * Game Instance.
  14.      */
  15.     protected final Game game;
  16.  
  17.     /**
  18.      * Game frame.
  19.      *
  20.      * @param game
  21.      */
  22.     public Gameframe(Game game) {
  23.         this.game = game;
  24.     }
  25.  
  26.     /**
  27.      * Builds the channel chat area menus.
  28.      */
  29.     public abstract void buildChannelButtonsMenus();
  30.  
  31.     /**
  32.      * Builds the map menus.
  33.      */
  34.     public abstract void buildMinimapMenus();
  35.  
  36.     /**
  37.      * Displays the chat area component.
  38.      */
  39.     public abstract void displayChatArea();
  40.  
  41.     /**
  42.      * Displays the map area component.
  43.      */
  44.     public abstract void displayMapArea();
  45.  
  46.     /**
  47.      * Displays the tab area component.
  48.      */
  49.     public abstract void displayTabArea();
  50.  
  51.     /**
  52.      * Displays the hitpoint orb.
  53.      */
  54.     public abstract void displayHitpointOrb();
  55.  
  56.     /**
  57.      * Displays the prayer orb.
  58.      */
  59.     public abstract void displayPrayerOrb();
  60.  
  61.     /**
  62.      * Displays the run orb.
  63.      */
  64.     public abstract void displayRunOrb();
  65.  
  66.     /**
  67.      * Displays the summoning orb.
  68.      */
  69.     public abstract void displaySummoningOrb();
  70.  
  71.     /**
  72.      * Checks if the tabs have been clicked and does the actions for them.
  73.      */
  74.     public abstract void processTabClick();
  75.  
  76.     /**
  77.      * Checks the walking game frame positioning.
  78.      *
  79.      * @return
  80.      */
  81.     public boolean canWalk() {
  82.         return game.mouseX > 0 && game.mouseY > 0 && game.mouseX < 516 && game.mouseY < 338;
  83.     }
  84. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement