Add simple movements with /move command

- Determine if we can move to the specified direction
 - Add moving ability to the specified direction
 - Add /move command for triggering moves
 - Add move decomp. into steps (more natural)
 - Add pathfinding routines (still WIP)
 - SO YES YOU CAN NOW WALK USING MCC!!!
This commit is contained in:
ORelio 2015-12-12 16:48:29 +01:00
parent 00131de08b
commit b0c8f82697
9 changed files with 475 additions and 17 deletions

View file

@ -342,5 +342,24 @@
return false;
}
}
/// <summary>
/// Check if the provided material is a liquid a player can swim into
/// </summary>
/// <param name="m">Material to test</param>
/// <returns>True if the material is a liquid</returns>
public static bool IsLiquid(this Material m)
{
switch (m)
{
case Material.Water:
case Material.StationaryWater:
case Material.Lava:
case Material.StationaryLava:
return true;
default:
return false;
}
}
}
}