Exemplo n.º 1
0
        public override void Execute(Vehicle vehicle)
        {
            _state = vehicle.NextTile() != vehicle.CurrentTile() //TODO: not true for T and crossroad use distance and angle
                ? (ITargetState)Arrive.Instance
                : FollowTo.Instance;

            _state.TargetPoint = _target;
            _state.Execute(vehicle);
        }
Exemplo n.º 2
0
        public PeerState(string oN, bool oO, string eN, List<string> rNs, string tN, List<double> ps, ITargetState ts)
        {
            ownerName = oN;
            onOff = oO;

            effectorName = eN;
            relationNames = rNs;
            targetName = tN;

            parameters = ps;
            targetState = ts;
        }