/+junk/c_sdl_joypad

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/%2Bjunk/c_sdl_joypad

« back to all changes in this revision

Viewing changes to GameObject.c

  • Committer: Gustav Hartvigsson
  • Date: 2013-09-29 21:22:46 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20130929212246-7dfbx0lquxt94d1m
reverted a mistake and fixed the code in the .c file to match this
correction.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
}
40
40
 
41
41
void game_object_do_callback (GameObject * self, char * name) {
42
 
  GameObjectDoCallbackFunc do_callback_func = self->klass->callback_handler_func;
 
42
  GameObjectCallbackHandlerFunc do_callback_func
 
43
                                           = self->klass->callback_handler_func;
43
44
  do_callback_func (self, name);
44
45
}
45
46
 
64
65
}
65
66
 
66
67
void game_object_set_callback_handler_func (GameObject * self,
67
 
                           GameObjectCallbackHandlerFunc callback_handler_func);
 
68
                          GameObjectCallbackHandlerFunc callback_handler_func) {
 
69
  self->klass->callback_handler_func = callback_handler_func;
 
70
}
68
71
 
69
72
void game_object_set_set_callback_func (GameObject * self,
70
73
                                  GameObjectSetCallbackFunc set_callback_func) {
77
80
}
78
81
 
79
82
void game_object_set_set_move_delta_func (GameObject * self,
80
 
                         GameObjectSetMovementDeltaFunc set_movement_delta_func) {
 
83
                       GameObjectSetMovementDeltaFunc set_movement_delta_func) {
81
84
  self->klass->set_movement_delta_func = set_movement_delta_func;
82
85
}
83
86