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); }
public AgentMotionSequence ConvertToMotionSequence(HexaPath path) { AgentMotionSequence motions = new AgentMotionSequence(); return(motions); }
public Human(HexagonalMap map) : base(map) { motion = new AgentMotionSequence(); _wingmanToleranceRange = new int(); }