Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef UNIT_DISPLAY_HPP_INCLUDED
00022 #define UNIT_DISPLAY_HPP_INCLUDED
00023
00024 #include "unit_map.hpp"
00025 #include "gamestatus.hpp"
00026
00027 class attack_type;
00028 class team;
00029 class unit;
00030
00031
00032
00033
00034
00035
00036 namespace unit_display
00037 {
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055 void move_unit(const std::vector<map_location>& path, unit& u,
00056 const std::vector<team>& teams, bool animate=true,
00057 map_location::DIRECTION dir=map_location::NDIRECTIONS);
00058 void move_unit_start(const std::vector<map_location>& path, unit& temp_unit,
00059 const team& tm);
00060 void move_unit_step(const std::vector<map_location>& path, size_t i,
00061 unit& temp_unit, const team& tm);
00062 void move_unit_finish(const std::vector<map_location>& path, unit& temp_unit);
00063
00064
00065
00066
00067
00068 void unit_draw_weapon( const map_location& loc, unit& u, const attack_type* attack=NULL, const attack_type*secondary_attack=NULL,const map_location& defender_loc = map_location::null_location, unit * defender=NULL);
00069
00070
00071
00072
00073
00074 void unit_sheath_weapon( const map_location& loc, unit* u=NULL, const attack_type* attack=NULL, const attack_type*secondary_attack=NULL,const map_location& defender_loc = map_location::null_location, unit * defender=NULL);
00075
00076
00077
00078
00079
00080
00081 void unit_die( const map_location& loc, unit& u,
00082 const attack_type* attack=NULL, const attack_type* secondary_attack=NULL,
00083 const map_location& winner_loc=map_location::null_location,
00084 unit* winner=NULL);
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096 void unit_attack(const map_location& a, const map_location& b, int damage,
00097 const attack_type& attack, const attack_type* secondary_attack,
00098 int swing, std::string hit_text, int drain_amount, std::string att_text);
00099
00100
00101 void unit_recruited(const map_location& loc,
00102 const map_location& leader_loc=map_location::null_location);
00103
00104
00105
00106
00107 void unit_healing(unit &healed, const map_location &healed_loc,
00108 const std::vector<unit *> &healers, int healing);
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118 void wml_animation(const vconfig &cfg,
00119 const map_location& default_location=map_location::null_location);
00120
00121 }
00122
00123 #endif