예제 #1
0
파일: tick.c 프로젝트: F483/cleanspace
void on_collision_power_cell(Trash* t){
  trash_clear(t);
  tick_energie += POWER_CELL_SIZE;
  if (tick_energie > POWER_MAXIMUM) {
    tick_energie = POWER_MAXIMUM;
  }
  play_powerup_sound();
}
예제 #2
0
파일: trash.c 프로젝트: Acknex/TUST
void trash_remove ( TrashCollector *trash )
{
	trash_clear ( trash );
	sys_free ( trash );
}