Ejemplo n.º 1
0
    /// <summary>
    /// Start decrememnting the Desires that the roomTarget is addressing by setting their decrement speeds
    /// </summary>
    private void StartRoomTargetDesireDecrement()
    {
        RoomObject obj = roomTarget.obj;
        List <Tuple <DesireType, int> > tuples = RoomObject.GetObjectDesireImpact(obj.GetRoomObjectType());

        for (int i = 0; i < tuples.Count; i++)
        {
            Tuple <DesireType, int> tuple = tuples[i];
            Desire desire = GetDesire(tuple.Item1);
            desire.SetDecrementSpeed(tuple.Item2);
        }
    }