Beispiel #1
0
static VALUE
rb_cpBodySleepWithGroup(VALUE self, VALUE vgroup) {
  cpBody * group = NIL_P(vgroup) ? NULL : rb_cpBodySleepValidate(vgroup);
  cpBody * body  = rb_cpBodySleepValidate(self);

  if (!cpBodyIsSleeping(group)) {
    rb_raise(rb_eArgError, "Cannot use a non-sleeping body as a group identifier.");
  }
  cpBodySleepWithGroup(body, group);
  return self;
}
Beispiel #2
0
void cBody::SleepWithGroup( cBody * Group ) {
	cpBodySleepWithGroup( mBody, Group->Body() );
}
void
cpBodySleep(cpBody *body)
{
	cpBodySleepWithGroup(body, NULL);
}
Beispiel #4
0
void Body::sleepWithGroup(cp::Body *group)
{
		cpBodySleepWithGroup(body,group ? group->get() : 0);
}