Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 public static void testActionRanged(Sprite player, Sprite target, GambitResult gambitResult)
 {
     player.hitTargetRanged(target, gambitResult.multiplier);
 }
Ejemplo n.º 3
0
 public void resolve(PlayerSprite player, Sprite target, EnemyPanel enemies, GambitResult result)
 {
     action(player, target, result);
 }