예제 #1
0
        public HexaPath ConvertToPath(AgentMotionSequence sequence, HexaPos currentPos)
        {
            HexagonalMap map  = GetMap();
            HexaPath     path = new HexaPath();

            path.AddPos(currentPos);

            List <HexagonalMap.Direction> .Enumerator e = sequence.mMotions.GetEnumerator();

            while (e.MoveNext())
            {
                HexagonalMap.Direction step = e.Current;
                currentPos = map.GetNext(currentPos, step);
                path.AddPos(currentPos);
            }

            return(path);
        }
예제 #2
0
        public AgentMotionSequence ConvertToMotionSequence(HexaPath path)
        {
            AgentMotionSequence motions = new AgentMotionSequence();

            return(motions);
        }
예제 #3
0
파일: Human.cs 프로젝트: dtbinh/SVNBackup
 public Human(HexagonalMap map) : base(map)
 {
     motion = new AgentMotionSequence();
     _wingmanToleranceRange = new int();
 }