Пример #1
0
        public FunkyTerror(CollissionHelper ch, int myId)
            : base(ch, myId, true)
        {
            leftMoves.Add(new Tuple <int, Move>(1, Move.Left));
            leftMoves.Add(new Tuple <int, Move>(2, Move.Left));
            leftMoves.Add(new Tuple <int, Move>(3, Move.Straight));
            leftMoves.Add(new Tuple <int, Move>(4, Move.Right));
            leftMoves.Add(new Tuple <int, Move>(5, Move.Right));
            leftMoves.Add(new Tuple <int, Move>(6, Move.Right));
            leftMoves.Add(new Tuple <int, Move>(7, Move.Right));
            leftMoves.Add(new Tuple <int, Move>(8, Move.Straight));
            leftMoves.Add(new Tuple <int, Move>(9, Move.Straight));
            leftMoves.Add(new Tuple <int, Move>(10, Move.Straight));
            leftMoves.Add(new Tuple <int, Move>(11, Move.Right));
            leftMoves.Add(new Tuple <int, Move>(12, Move.Right));

            rightMoves.Add(new Tuple <int, Move>(1, Move.Right));
            rightMoves.Add(new Tuple <int, Move>(2, Move.Right));
            rightMoves.Add(new Tuple <int, Move>(3, Move.Straight));
            rightMoves.Add(new Tuple <int, Move>(4, Move.Left));
            rightMoves.Add(new Tuple <int, Move>(5, Move.Left));
            rightMoves.Add(new Tuple <int, Move>(6, Move.Left));
            rightMoves.Add(new Tuple <int, Move>(7, Move.Left));
            rightMoves.Add(new Tuple <int, Move>(8, Move.Straight));
            rightMoves.Add(new Tuple <int, Move>(9, Move.Straight));
            rightMoves.Add(new Tuple <int, Move>(10, Move.Straight));
            rightMoves.Add(new Tuple <int, Move>(11, Move.Left));
            rightMoves.Add(new Tuple <int, Move>(12, Move.Left));
        }
Пример #2
0
        public Planner(int max, int myId)
        {
            _ch   = new CollissionHelper(max);
            _myId = myId;
            _walkSets.Add(new Straight(_ch, _myId));
            _walkSets.Add(new Right45(_ch, _myId));
            _walkSets.Add(new Right90(_ch, _myId));
            _walkSets.Add(new Right125(_ch, _myId));
            _walkSets.Add(new Right180(_ch, _myId));
            _walkSets.Add(new Left45(_ch, _myId));
            _walkSets.Add(new Left90(_ch, _myId));
            _walkSets.Add(new Left125(_ch, _myId));
            _walkSets.Add(new Left180(_ch, _myId));

            _walkSetsPro.Add(new RollLeft(_ch, _myId));
            _walkSetsPro.Add(new RollRight(_ch, _myId));
            _walkSetsPro.Add(new SquareRight(_ch, _myId));
            _walkSetsPro.Add(new SquareLeft(_ch, _myId));
            _walkSetsPro.Add(new Snaker(_ch, _myId));
            _walkSetsPro.Add(new Quaker(_ch, _myId));
            _walkSetsPro.Add(new FunkyTerror(_ch, _myId));
        }
Пример #3
0
 protected WalkSetBase(CollissionHelper ch, int myId, bool isPro = false)
 {
     _myId  = myId;
     _ch    = ch;
     _isPro = isPro;
 }
Пример #4
0
 public Straight(CollissionHelper ch, int myId) : base(ch, myId)
 {
 }
Пример #5
0
 public Right45(CollissionHelper ch, int myId) : base(ch, myId)
 {
 }
Пример #6
0
 public Left180(CollissionHelper ch, int myId) : base(ch, myId)
 {
 }
Пример #7
0
 public SquareLeft(CollissionHelper ch, int myId) : base(ch, myId, true)
 {
 }
Пример #8
0
 public Quaker(CollissionHelper ch, int myId) : base(ch, myId, true)
 {
 }
Пример #9
0
 public RollRight(CollissionHelper ch, int myId) : base(ch, myId, true)
 {
 }
Пример #10
0
 public Roll100(CollissionHelper ch, int myId) : base(ch, myId)
 {
 }
Пример #11
0
 public GetToWall(CollissionHelper ch, int myId) : base(ch, myId)
 {
 }