Ejemplo n.º 1
0
        public bool IsHit(uint engineId, uint id)
        {
            bool ret;

            if (HitLookup.TryGetValue(Bubbles.MakeKey(engineId, id), out ret))
            {
                return(ret);
            }
            return(false);
        }
Ejemplo n.º 2
0
        public void PauseAll(Bubbles bubPact, bool pause)
        {
            uint groupCount = bubPact.GetGroupCount();

            for (uint i = 0; i < groupCount; i++)
            {
                bubPact.PauseGroup(i, pause);
            }

            CollisionDrainerTimer.Enabled = (pause == false);
        }
Ejemplo n.º 3
0
        public void SetHit(uint engineId, uint id, bool value)
        {
            Bubbles.EngineBubbleKey key = Bubbles.MakeKey(engineId, id);
            bool getit;

            if (HitLookup.TryGetValue(key, out getit) == false)
            {
                HitLookup.TryAdd(key, value);
            }
            else
            {
                HitLookup[key] = value;
            }
        }
Ejemplo n.º 4
0
 public void StartEngine(Bubbles bubPact, uint engineId, uint intervalMS)
 {
     bubPact.StartEngine(engineId, delegate(List <Bubbles.CollisionResult> list)
                         { BubbleUtil.Bangs(this, engineId, list); }, intervalMS);
 }