Beispiel #1
0
        public Bot(teleAbility kind, autoAbility autoKind, Alliance side)
        {
            canShoot  = kind.HasFlag(teleAbility.shoot);
            canClimb  = kind.HasFlag(teleAbility.climb);
            canBreach = kind.HasFlag(teleAbility.breach);

            canAuto = autoKind;
            hasBall = true; //let each robot start with a ball
            mode    = botMode.none;

            strategy         = new BotStrategy(this);
            location.current = fieldLocation.places.neutral;
            destination      = fieldLocation.places.not_set;
            distancetogo     = 0;
            team             = side;
            maxSpeed         = 5.0; //default to 5 fps
        }
Beispiel #2
0
        public Bot(teleAbility kind, autoAbility autoKind, Alliance side)
        {
            canShoot = kind.HasFlag(teleAbility.shoot);
            canClimb = kind.HasFlag(teleAbility.climb);
            canBreach = kind.HasFlag(teleAbility.breach);

            canAuto = autoKind;
            hasBall = true; //let each robot start with a ball
            mode = botMode.none;

            strategy = new BotStrategy(this);
            location.current = fieldLocation.places.neutral;
            destination = fieldLocation.places.not_set;
            distancetogo = 0;
            team = side;
            maxSpeed = 5.0; //default to 5 fps
        }