Example #1
0
    void _addOrDictThruster(Thruster th)
    {
        Base6Directions.Direction key = th.getOrientation();
        double val = th.getForce();

        if (forceMapDict.ContainsKey(key))
        {
            forceMapDict[key] += val;
        }
        else
        {
            forceMapDict.Add(key,  val);
        }
    }