Mercurial > molko
comparison libmlk-adventure/adventure/action/spawner.c @ 275:f89a53abb314
adventure: cleanup actions and prepare map scenes
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sun, 13 Dec 2020 11:01:18 +0100 |
parents | e28429dbdaaf |
children | 3991779aaba9 |
comparison
equal
deleted
inserted
replaced
274:a9064c09dde6 | 275:f89a53abb314 |
---|---|
71 s->last_y = s->map->player_y; | 71 s->last_y = s->map->player_y; |
72 s->steps = util_nrand(s->low, s->high); | 72 s->steps = util_nrand(s->low, s->high); |
73 } | 73 } |
74 | 74 |
75 struct action * | 75 struct action * |
76 spawner_new(struct spawner *s) | 76 spawner_action(struct spawner *s) |
77 { | 77 { |
78 assert(s); | 78 assert(s); |
79 | 79 |
80 s->action.data = s; | 80 s->action.data = s; |
81 s->action.update = update; | 81 s->action.update = update; |