예제 #1
0
파일: Agent.cs 프로젝트: Metapyziks/ZiksBot
 public Agent( int team, Position pos, Direction dir )
     : this(team)
 {
     Position = pos;
     Direction = dir;
 }
예제 #2
0
        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;
        }