Пример #1
0
 /**
  * This function collides <code>defaultGroup</code> against <code>defaultGroup</code>
  * (basically everything you added to this state).
  */
 virtual public void collide()
 {
     FlxU.collide(defaultGroup, defaultGroup);
 }
Пример #2
0
 /**
  * If you don't want to call <code>FlxU.collide()</code> you can use this instead.
  * Just calls <code>FlxU.collide(this,Object);</code>.  Will collide against itself
  * if Object==null.
  *
  * @param	Object		The <FlxObject> you want to collide with.
  */
 virtual public bool collide(FlxObject Object)
 {
     return(FlxU.collide(this, ((Object == null)?this:Object)));
 }