public static Sprite CreateNewSprite(String path) { Sprite result = new Sprite(new List<Sprite.SpriteAction>()); string line; System.IO.StreamReader file = new System.IO.StreamReader("Content/Stats/NPCStats.txt"); while ((line = file.ReadLine()) != null) { char[] delimiters = new char[] { ',' }; string[] parts = line.Split(delimiters, StringSplitOptions.RemoveEmptyEntries); UnitStats u = new UnitStats(); u.init(parts); if(u.model.CompareTo(path)==0) { result.setParam(u, 0, 0); return result; } } return result; }
public static void testActionRanged(Sprite player, Sprite target, GambitResult gambitResult) { player.hitTargetRanged(target, gambitResult.multiplier); }
public void resolve(PlayerSprite player, Sprite target, EnemyPanel enemies, GambitResult result) { action(player, target, result); }