♪♫ Wer will lustige Schweifklammern sehn, der muss ins inf3 praktikum geh'n ♫ ♪
This commit is contained in:
@@ -176,9 +176,10 @@ namespace WorldOfPeacecraft
|
|||||||
|
|
||||||
public void MoveStep ()
|
public void MoveStep ()
|
||||||
{
|
{
|
||||||
if (Pathwalker.HasMoreSteps())
|
if (Pathwalker.HasMoreSteps ()) {
|
||||||
SenderBuffer.AddLine ("ask:" + Pathwalker.NextStep ());
|
SenderBuffer.AddLine ("ask:" + Pathwalker.NextStep ());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void OnPlayerMoved (int x, int y)
|
public void OnPlayerMoved (int x, int y)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -30,12 +30,14 @@ namespace WorldOfPeacecraft
|
|||||||
public override void SetPos (int x, int y)
|
public override void SetPos (int x, int y)
|
||||||
{
|
{
|
||||||
bool positionChanged = false;
|
bool positionChanged = false;
|
||||||
if (x != GetX() || y != GetY ())
|
if (x != GetX () || y != GetY ()) {
|
||||||
positionChanged = true;
|
positionChanged = true;
|
||||||
|
}
|
||||||
base.SetPos (x, y);
|
base.SetPos (x, y);
|
||||||
if (positionChanged && LocationChanged != null)
|
if (positionChanged && LocationChanged != null) {
|
||||||
LocationChanged (x, y);
|
LocationChanged (x, y);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public override string ToString()
|
public override string ToString()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user