summaryrefslogtreecommitdiff
path: root/src/map/unit.h
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-10 21:38:05 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-10 21:38:05 +0000
commit7961554a72e475cd71bd34f65bb548c1b13dc685 (patch)
tree58bcfac64070e2d01fd499ba9bfb4a423ebeac99 /src/map/unit.h
parent20fadf45adddb27cf7e4db736614b67f7f8561f6 (diff)
downloadhercules-7961554a72e475cd71bd34f65bb548c1b13dc685.tar.gz
hercules-7961554a72e475cd71bd34f65bb548c1b13dc685.tar.bz2
hercules-7961554a72e475cd71bd34f65bb548c1b13dc685.tar.xz
hercules-7961554a72e475cd71bd34f65bb548c1b13dc685.zip
- Modified the unit_data structure to handle automatically switching between chasing and attacking a character. Note that it's a work in progress and not yet properly tested/finished...
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5979 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/unit.h')
-rw-r--r--src/map/unit.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/unit.h b/src/map/unit.h
index 9724a8523..f3c0c87c9 100644
--- a/src/map/unit.h
+++ b/src/map/unit.h
@@ -11,6 +11,7 @@
// 歩行開始
// 戻り値は、0 ( 成功 ), 1 ( 失敗 )
int unit_walktoxy( struct block_list *bl, int x, int y, int easy);
+int unit_walktobl( struct block_list *bl, struct block_list *target, int range, int easy);
// 歩行停止
// typeは以下の組み合わせ :
@@ -31,7 +32,8 @@ int unit_setdir(struct block_list *bl,unsigned char dir);
int unit_getdir(struct block_list *bl);
// そこまで歩行でたどり着けるかの判定
-int unit_can_reach(struct block_list *bl,int x,int y);
+int unit_can_reach_pos(struct block_list *bl,int x,int y,int easy);
+int unit_can_reach_bl(struct block_list *bl,struct block_list *tbl, int range, int easy, short *x, short *y);
// 攻撃関連
int unit_stop_attack(struct block_list *bl);