Advertisement
RovkirHexus

FEPrimitive

Jun 8th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.96 KB | None | 0 0
  1. package feAttempt;
  2.  
  3.  
  4. public class FEPrimitive {
  5.     public static GridDisplay display = new GridDisplay(20,20);
  6.     public static Grid<Sprite> grid = display.getSpriteGrid();
  7.    
  8.     public static void main(String[] args){
  9.         preInit();
  10.         init();
  11.         postInit();
  12.         run();
  13.     }
  14.  
  15.     public static void preInit(){
  16.         Stats.createStats();
  17.         Weapons.createWeapons();
  18.         Units.createUnits();
  19.     }
  20.  
  21.     public static void init(){
  22.        
  23.         Units.lyn.putSelfInGrid(grid, new Location(0,0));
  24.         System.out.println(Units.lyn.getLocation());
  25.         System.out.println("Put Lyn in grid");
  26.     }
  27.  
  28.     public static void postInit(){
  29.  
  30.     }
  31.  
  32.     public static void run(){
  33.  
  34.     }
  35.  
  36.     public static void fight(){
  37.         //Hit chance is calculated with { (Skill * 2) + weaponHitChance + (Luck/2) + weapon triangle adv/dis } .
  38.         //Physical damage is calculated with { Strength + weaponStrength - opponent's defense } .
  39.         //Magical damage is calculated with { Magic + weaponStrength - opponent's resistance } .
  40.     }
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement