[UBEREMU] MYSQL Pathfinder.cs Code (Fixed)
replace private IEnumerable<Point> GetSquares() with this code.
PHP Code:
private IEnumerable<Point> GetSquares()
{
for (int x = 0; x < mapSizeX; x++)
{
for (int y = 0; y < mapSizeY; y++)
{
yield return new Point(x, y);
}
}
}
private IEnumerable<Point> ValidMoves(int x, int y)
{
foreach (Point movePoint in Movements)
{
int newX = x + movePoint.X;
int newY = y + movePoint.Y;
if (ValidCoordinates(newX, newY) &&
IsSquareOpen(newX, newY, true))
{
yield return new Point(newX, newY);
}
}
}
Re: [UBEREMU] MYSQL Pathfinder.cs Code (Fixed)
i cant really give a comment if this is real or fake since i dont know shit about Ion lol.
Re: [UBEREMU] MYSQL Pathfinder.cs Code (Fixed)
Re: [UBEREMU] MYSQL Pathfinder.cs Code (Fixed)
Re: [UBEREMU] MYSQL Pathfinder.cs Code (Fixed)
Re: [UBEREMU] MYSQL Pathfinder.cs Code (Fixed)
PixelDev why put my name on it? i didn't even work on anything or this with you? :S
Re: [UBEREMU] MYSQL Pathfinder.cs Code (Fixed)
Then this is fake!
---------- Post added at 12:49 AM ---------- Previous post was at 12:48 AM ----------
wow he removed ur name
Re: [UBEREMU] MYSQL Pathfinder.cs Code (Fixed)
Re: [UBEREMU] MYSQL Pathfinder.cs Code (Fixed)
im thinking it is because a while ago u said u and matty13 coded it.
Re: [UBEREMU] MYSQL Pathfinder.cs Code (Fixed)
Quote:
Originally Posted by
♫Žak♫ ツ
im thinking it is because a while ago u said u and matty13 coded it.
Stop being a damn troll
Re: [UBEREMU] MYSQL Pathfinder.cs Code (Fixed)
i didnt i said he inspired me
Re: [UBEREMU] MYSQL Pathfinder.cs Code (Fixed)
Quote:
Originally Posted by
Shacobesaurus™
Stop being a damn troll
lol you the one who always troll :laugh:
im just saying becuase he put matty13 name on there saying he coded it with him so if you dont know you should read the previous posts..:):
Re: [UBEREMU] MYSQL Pathfinder.cs Code (Fixed)
Thanks for releasing this.
Re: [UBEREMU] MYSQL Pathfinder.cs Code (Fixed)
Re: [UBEREMU] MYSQL Pathfinder.cs Code (Fixed)
Are you sure?
This is my standard :
Code:
private IEnumerable<Point> GetSquares()
{
for (int x = 0; x < mapSizeX; x++)
{
for (int y = 0; y < mapSizeY; y++)
{
yield return new Point(x, y);
}
}
}
private IEnumerable<Point> ValidMoves(int x, int y)
{
foreach (Point movePoint in Movements)
{
int newX = x + movePoint.X;
int newY = y + movePoint.Y;
if (ValidCoordinates(newX, newY) &&
IsSquareOpen(newX, newY, true))
{
yield return new Point(newX, newY);
}
}
}
I Think it's te same. Or am i wrong? :huh: