|
@@ -68,61 +68,57 @@ struct view_data {
|
|
unsigned dead_sit : 2;
|
|
unsigned dead_sit : 2;
|
|
};
|
|
};
|
|
|
|
|
|
-// PC, MOB, PET に共通する処理を1つにまとめる計画
|
|
|
|
|
|
+// PC, MOB, PET
|
|
|
|
|
|
-// 歩行開始
|
|
|
|
-// 戻り値は、0 ( 成功 ), 1 ( 失敗 )
|
|
|
|
|
|
+// Does walk action for unit
|
|
int unit_walktoxy( struct block_list *bl, short x, short y, int easy);
|
|
int unit_walktoxy( struct block_list *bl, short x, short y, int easy);
|
|
int unit_walktobl( struct block_list *bl, struct block_list *target, int range, int easy);
|
|
int unit_walktobl( struct block_list *bl, struct block_list *target, int range, int easy);
|
|
int unit_run(struct block_list *bl);
|
|
int unit_run(struct block_list *bl);
|
|
int unit_calc_pos(struct block_list *bl, int tx, int ty, uint8 dir);
|
|
int unit_calc_pos(struct block_list *bl, int tx, int ty, uint8 dir);
|
|
|
|
+int unit_delay_walktoxy_timer(int tid, unsigned int tick, int id, intptr_t data);
|
|
|
|
+int unit_delay_walktobl_timer(int tid, unsigned int tick, int id, intptr_t data);
|
|
|
|
|
|
-// 歩行停止
|
|
|
|
-// typeは以下の組み合わせ :
|
|
|
|
-// 1: 位置情報の送信( この関数の後に位置情報を送信する場合は不要 )
|
|
|
|
-// 2: ダメージディレイ有り
|
|
|
|
-// 4: 不明(MOBのみ?)
|
|
|
|
|
|
+// Causes the target object to stop moving.
|
|
int unit_stop_walking(struct block_list *bl,int type);
|
|
int unit_stop_walking(struct block_list *bl,int type);
|
|
int unit_can_move(struct block_list *bl);
|
|
int unit_can_move(struct block_list *bl);
|
|
int unit_is_walking(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_set_walkdelay(struct block_list *bl, unsigned int tick, int delay, int type);
|
|
|
|
|
|
int unit_escape(struct block_list *bl, struct block_list *target, short dist);
|
|
int unit_escape(struct block_list *bl, struct block_list *target, short dist);
|
|
-// 位置の強制移動(吹き飛ばしなど)
|
|
|
|
|
|
+
|
|
|
|
+// Instant unit changes
|
|
int unit_movepos(struct block_list *bl, short dst_x, short dst_y, int easy, bool checkpath);
|
|
int unit_movepos(struct block_list *bl, short dst_x, short dst_y, int easy, bool checkpath);
|
|
int unit_warp(struct block_list *bl, short map, short x, short y, clr_type type);
|
|
int unit_warp(struct block_list *bl, short map, short x, short y, clr_type type);
|
|
int unit_setdir(struct block_list *bl,unsigned char dir);
|
|
int unit_setdir(struct block_list *bl,unsigned char dir);
|
|
uint8 unit_getdir(struct block_list *bl);
|
|
uint8 unit_getdir(struct block_list *bl);
|
|
int unit_blown(struct block_list* bl, int dx, int dy, int count, int flag);
|
|
int unit_blown(struct block_list* bl, int dx, int dy, int count, int flag);
|
|
|
|
|
|
-// そこまで歩行でたどり着けるかの判定
|
|
|
|
|
|
+// Can-reach checks
|
|
bool unit_can_reach_pos(struct block_list *bl,int x,int y,int easy);
|
|
bool unit_can_reach_pos(struct block_list *bl,int x,int y,int easy);
|
|
bool unit_can_reach_bl(struct block_list *bl,struct block_list *tbl, int range, int easy, short *x, short *y);
|
|
bool unit_can_reach_bl(struct block_list *bl,struct block_list *tbl, int range, int easy, short *x, short *y);
|
|
|
|
|
|
-// 攻撃関連
|
|
|
|
|
|
+// Unit attack functions
|
|
int unit_stop_attack(struct block_list *bl);
|
|
int unit_stop_attack(struct block_list *bl);
|
|
int unit_attack(struct block_list *src,int target_id,int continuous);
|
|
int unit_attack(struct block_list *src,int target_id,int continuous);
|
|
int unit_cancel_combo(struct block_list *bl);
|
|
int unit_cancel_combo(struct block_list *bl);
|
|
|
|
|
|
-// スキル使用
|
|
|
|
|
|
+// Cast on a unit
|
|
int unit_skilluse_id(struct block_list *src, int target_id, uint16 skill_id, uint16 skill_lv);
|
|
int unit_skilluse_id(struct block_list *src, int target_id, uint16 skill_id, uint16 skill_lv);
|
|
int unit_skilluse_pos(struct block_list *src, short skill_x, short skill_y, uint16 skill_id, uint16 skill_lv);
|
|
int unit_skilluse_pos(struct block_list *src, short skill_x, short skill_y, uint16 skill_id, uint16 skill_lv);
|
|
-
|
|
|
|
-// スキル使用( 補正済みキャスト時間、キャンセル不可設定付き )
|
|
|
|
int unit_skilluse_id2(struct block_list *src, int target_id, uint16 skill_id, uint16 skill_lv, int casttime, int castcancel);
|
|
int unit_skilluse_id2(struct block_list *src, int target_id, uint16 skill_id, uint16 skill_lv, int casttime, int castcancel);
|
|
int unit_skilluse_pos2( struct block_list *src, short skill_x, short skill_y, uint16 skill_id, uint16 skill_lv, int casttime, int castcancel);
|
|
int unit_skilluse_pos2( struct block_list *src, short skill_x, short skill_y, uint16 skill_id, uint16 skill_lv, int casttime, int castcancel);
|
|
|
|
|
|
-// 詠唱キャンセル
|
|
|
|
|
|
+// Cancel unit cast
|
|
int unit_skillcastcancel(struct block_list *bl,int type);
|
|
int unit_skillcastcancel(struct block_list *bl,int type);
|
|
|
|
|
|
int unit_counttargeted(struct block_list *bl);
|
|
int unit_counttargeted(struct block_list *bl);
|
|
int unit_set_target(struct unit_data* ud, int target_id);
|
|
int unit_set_target(struct unit_data* ud, int target_id);
|
|
|
|
|
|
-// unit_data の初期化処理
|
|
|
|
|
|
+// unit_data
|
|
void unit_dataset(struct block_list *bl);
|
|
void unit_dataset(struct block_list *bl);
|
|
|
|
|
|
int unit_fixdamage(struct block_list *src,struct block_list *target,unsigned int tick,int sdelay,int ddelay,int damage,int div,int type,int damage2);
|
|
int unit_fixdamage(struct block_list *src,struct block_list *target,unsigned int tick,int sdelay,int ddelay,int damage,int div,int type,int damage2);
|
|
-// その他
|
|
|
|
|
|
+// Remove unit
|
|
struct unit_data* unit_bl2ud(struct block_list *bl);
|
|
struct unit_data* unit_bl2ud(struct block_list *bl);
|
|
void unit_remove_map_pc(struct map_session_data *sd, clr_type clrtype);
|
|
void unit_remove_map_pc(struct map_session_data *sd, clr_type clrtype);
|
|
void unit_free_pc(struct map_session_data *sd);
|
|
void unit_free_pc(struct map_session_data *sd);
|
|
@@ -131,12 +127,10 @@ int unit_remove_map_(struct block_list *bl, clr_type clrtype, const char* file,
|
|
int unit_free(struct block_list *bl, clr_type clrtype);
|
|
int unit_free(struct block_list *bl, clr_type clrtype);
|
|
int unit_changeviewsize(struct block_list *bl,short size);
|
|
int unit_changeviewsize(struct block_list *bl,short size);
|
|
|
|
|
|
-// 初期化ルーチン
|
|
|
|
int do_init_unit(void);
|
|
int do_init_unit(void);
|
|
int do_final_unit(void);
|
|
int do_final_unit(void);
|
|
-/**
|
|
|
|
- * Ranger
|
|
|
|
- **/
|
|
|
|
|
|
+
|
|
|
|
+// Ranger
|
|
int unit_wugdash(struct block_list *bl, struct map_session_data *sd);
|
|
int unit_wugdash(struct block_list *bl, struct map_session_data *sd);
|
|
|
|
|
|
extern const short dirx[8];
|
|
extern const short dirx[8];
|