public BasicWeapon(RectangularMask rectangularMask) : base(rectangularMask) { base.CollidingMode = CollidingMode.Inclusion; CollidingInclusionSet.Add(typeof(AI <MonkeyBoard>)); CollidingInclusionSet.Add(typeof(BorderTile)); }
public Stub() : base() { // CollidingMode = CollidingMode.Exclusion; CollidingMode = CollidingMode.Inclusion; // CollidingExclusionSet.Add(typeof(Monkey)); CollidingInclusionSet.Add(typeof(Monkey)); }
internal protected void OpenDoorBinding(object sender, BananasEventArgs e) { switch (CurrentDoorState) { case DoorState.Closed: CurrentDoorState = DoorState.Opened; CollidingInclusionSet.Add(typeof(Monkey)); // forces the sound file to be played at the start again // by stopping it doorOpenPlayer.Stop(); doorOpenPlayer.Play(); OnDoorOpen(new EventArgs()); //Debug.WriteLine("door opened!"); break; case DoorState.Opened: break; } }