Ejemplo n.º 1
0
 public static BasicTile PointToTile(LuaPoint lp)
 {
     if (CombatProcessor.zoneTiles.Count != 0)
     {
         BasicTile randomTile = CombatProcessor.zoneTiles.Find(t => t.positionGrid == lp.toVector2());
         return(randomTile);
     }
     return(null);
 }
Ejemplo n.º 2
0
 public static LuaPoint RandomMapPosition()
 {
     if (CombatProcessor.zoneTiles.Count != 0)
     {
         BasicTile randomTile = CombatProcessor.zoneTiles[GamePlayUtility.Randomize(0, CombatProcessor.zoneTiles.Count - 1)];
         LuaPoint  p          = new LuaPoint(randomTile.positionGrid.X, randomTile.positionGrid.Y);
         return(p);
     }
     return(null);
 }
Ejemplo n.º 3
0
 public Enemy(String n, LuaPoint l)
 {
     name     = n;
     location = l;
 }
 public LuaDangerTile(LuaPoint p, NLua.LuaFunction f)
 {
     tile = p;
     SetFunction(f);
 }
 public LuaDangerTile(LuaPoint p)
 {
     tile = p;
 }