subs: Move shared code from navi.c to subs

Rename do_unit_move() to unit_move() to blend into unitsub.c.  Give
its helpers static linkage.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2015-01-05 13:12:38 +01:00
parent 520cfea05d
commit 198e2dd076
7 changed files with 289 additions and 299 deletions

View file

@ -56,9 +56,7 @@ extern int unit_nplane(int, int, int *, int *, int *);
extern void unit_onresize(int);
extern char *unit_nameof(struct empobj *);
extern void unit_list(struct emp_qelem *);
extern char *unit_path(struct empobj *, char *, size_t);
extern void unit_view(struct emp_qelem *);
extern int unit_move(struct emp_qelem *, double *, double *);
extern void unit_teleport(struct empobj *, coord, coord);
extern int unit_update_cargo(struct empobj *);
extern void unit_drop_cargo(struct empobj *, natid);