Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package feAttempt;
- public class FEPrimitive {
- public static GridDisplay display = new GridDisplay(20,20);
- public static Grid<Sprite> grid = display.getSpriteGrid();
- public static void main(String[] args){
- preInit();
- init();
- postInit();
- run();
- }
- public static void preInit(){
- Stats.createStats();
- Weapons.createWeapons();
- Units.createUnits();
- }
- public static void init(){
- Units.lyn.putSelfInGrid(grid, new Location(0,0));
- System.out.println(Units.lyn.getLocation());
- System.out.println("Put Lyn in grid");
- }
- public static void postInit(){
- }
- public static void run(){
- }
- public static void fight(){
- //Hit chance is calculated with { (Skill * 2) + weaponHitChance + (Luck/2) + weapon triangle adv/dis } .
- //Physical damage is calculated with { Strength + weaponStrength - opponent's defense } .
- //Magical damage is calculated with { Magic + weaponStrength - opponent's resistance } .
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement