summaryrefslogtreecommitdiff
path: root/src/map/unit.h
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-01-16 13:56:17 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-01-16 13:56:17 +0000
commit8ff8d0f9ee285452ba7820c3fb333eddb042272b (patch)
tree167718cd574dbaa83ed3c4baf4ede65a0c5266f3 /src/map/unit.h
parente2d3ae9dc682afc1ac34a536006ef79370040b04 (diff)
downloadhercules-8ff8d0f9ee285452ba7820c3fb333eddb042272b.tar.gz
hercules-8ff8d0f9ee285452ba7820c3fb333eddb042272b.tar.bz2
hercules-8ff8d0f9ee285452ba7820c3fb333eddb042272b.tar.xz
hercules-8ff8d0f9ee285452ba7820c3fb333eddb042272b.zip
- Added function unit_escape to simplify the run-away code a bit in the mob ai.
- Some cleaning on the mob_ai to enable mobs to run away from their current target when they are rude-attacked by them. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9658 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/unit.h')
-rw-r--r--src/map/unit.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/unit.h b/src/map/unit.h
index 8f44616d8..9b53f90bf 100644
--- a/src/map/unit.h
+++ b/src/map/unit.h
@@ -24,6 +24,7 @@ int unit_can_move(struct block_list *bl);
int unit_is_walking(struct block_list *bl);
int unit_set_walkdelay(struct block_list *bl, unsigned int tick, int delay, int type);
+int unit_escape(struct block_list *bl, struct block_list *target, int dist);
// 位置の強制移動(吹き飛ばしなど)
int unit_movepos(struct block_list *bl,int dst_x,int dst_y, int easy, int checkpath);
int unit_warp(struct block_list *bl, int map, short x, short y, int type);