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); }
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); }
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; }