public Agent( int team, Position pos, Direction dir ) : this(team) { Position = pos; Direction = dir; }
public static bool TryParse( String str, out Direction dir ) { switch ( str ) { case "n": dir = North; return true; case "s": dir = South; return true; case "e": dir = East; return true; case "w": dir = West; return true; } dir = Direction.None; return false; }