public bool IsHit(uint engineId, uint id) { bool ret; if (HitLookup.TryGetValue(Bubbles.MakeKey(engineId, id), out ret)) { return(ret); } return(false); }
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); }
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; } }
public void StartEngine(Bubbles bubPact, uint engineId, uint intervalMS) { bubPact.StartEngine(engineId, delegate(List <Bubbles.CollisionResult> list) { BubbleUtil.Bangs(this, engineId, list); }, intervalMS); }