Esempio n. 1
0
		public bool CheckCollision(Actor other) {
			return (this.cls != null && !this.cls.IsInstanceOfType(other)) ? false
					: ((this.compareObject == null) ? true : other
							.Intersects(this.compareObject));
		}
Esempio n. 2
0
 public bool CheckCollision(Actor other)
 {
     return((this.cls != null && !this.cls.IsInstanceOfType(other)) ? false
                                 : ((this.compareObject == null) ? true : other
                                    .Intersects(this.compareObject)));
 }
Esempio n. 3
0
		public bool CheckOnlyCollision(Actor other) {
			return ((this.compareObject == null) ? true : other
					.Intersects(this.compareObject));
		}
Esempio n. 4
0
 public bool CheckOnlyCollision(Actor other)
 {
     return((this.compareObject == null) ? true : other
            .Intersects(this.compareObject));
 }