メインページ | ネームスペース一覧 | クラス階層 | アルファベット順一覧 | 構成 | ファイル一覧 | ネームスペースメンバ | 構成メンバ | ファイルメンバ

cronous-env.hxx

説明を見る。
00001 #ifndef CRONOUS_ENV_HXX_
00002 # define CRONOUS_ENV_HXX_
00003 
00004 namespace environment
00005 {
00006   inline int CronousEnv::get_state() const
00007   {
00008     return _state;
00009   }
00010 
00011   inline int CronousEnv::get_substate() const
00012   {
00013     return _substate;
00014   }
00015 
00016   inline void CronousEnv::set_substate(int s)
00017   {
00018     _substate = s;
00019   }
00020 
00021   inline const infos::CharactersAvailable *
00022   CronousEnv::get_characters_available() const
00023   {
00024     return _characters_available;
00025   }
00026 
00027   inline int CronousEnv::get_pos_x() const
00028   {
00029     return _pos_x;
00030   }
00031   
00032   inline int CronousEnv::get_pos_y() const
00033   {
00034     return _pos_y;
00035   }
00036 
00037   inline int CronousEnv::get_pos_z() const
00038   {
00039     return _pos_z;
00040   }
00041 
00042   inline void CronousEnv::set_pos_x(int x)
00043   {
00044     _pos_x = x;
00045   }
00046   
00047   inline void CronousEnv::set_pos_y(int y)
00048   {
00049     _pos_y = y;
00050   }
00051 
00052   inline void CronousEnv::set_pos_z(int z)
00053   {
00054     _pos_z = z;
00055   }
00056 
00057   inline int CronousEnv::get_dest_x() const
00058   {
00059     return _dest_x;
00060   }
00061   
00062   inline int CronousEnv::get_dest_y() const
00063   {
00064     return _dest_y;
00065   }
00066   
00067   inline int CronousEnv::get_dest_z() const
00068   {
00069     return _dest_z;
00070   }
00071   
00072   inline void CronousEnv::set_dest_x(int x)
00073   {
00074     _dest_x = x;
00075   }
00076   
00077   inline void CronousEnv::set_dest_y(int y)
00078   {
00079     _dest_y = y;
00080   }
00081   
00082   inline void CronousEnv::set_dest_z(int z)
00083   {
00084     _dest_z = z;
00085   }
00086 
00087   inline bool CronousEnv::is_moving() const
00088   {
00089     return (_dest_x != _pos_x) ||
00090       (_dest_y != _pos_y) ||
00091       (_dest_z != _pos_z);
00092   }
00093 
00094   inline int CronousEnv::get_angle() const
00095   {
00096     return _angle;
00097   }
00098   
00099   inline void CronousEnv::set_angle(int degrees)
00100   {
00101     _angle = degrees;
00102   }
00103 
00104   inline const objects::DefMap *CronousEnv::get_current_map() const
00105   {
00106     return _current_map;
00107   }
00108   
00109   inline void CronousEnv::set_current_map(const objects::DefMap &map)
00110   {
00111     _current_map = ↦
00112   }
00113   
00114   inline const objects::DefMap *CronousEnv::get_scroll_map() const
00115   {
00116     return _scroll_map;
00117   }
00118   
00119   inline void CronousEnv::set_scroll_map(const objects::DefMap &map)
00120   {
00121     _scroll_map = ↦
00122   }
00123   
00124   inline const objects::DefMap *CronousEnv::get_home_map() const
00125   {
00126     return _home_map;
00127   }
00128   
00129   inline void CronousEnv::set_home_map(const objects::DefMap &map)
00130   {
00131     _home_map = ↦
00132   }
00133 
00134   inline bool CronousEnv::is_warping() const
00135   {
00136     return _warping;
00137   }
00138   
00139   inline void CronousEnv::set_warping(bool b)
00140   {
00141     _warping = b;
00142   }
00143 
00144   inline const CronousEnv::IntToCharacterMap &CronousEnv::get_id_map() const
00145   {
00146     return _id_map;
00147   }
00148   
00149   inline const CronousEnv::IntToCharacterMap &CronousEnv::get_screen_id_map() const
00150   {
00151     return _screen_id_map;
00152   }
00153 
00154   inline const CronousEnv::StringToCharacterMap &CronousEnv::get_name_map() const
00155   {
00156     return _name_map;
00157   }
00158 
00159   inline objects::Character *CronousEnv::get_player_character() const
00160   {
00161     return _player_character;
00162   }
00163 
00164   inline int CronousEnv::get_status_flag() const
00165   {
00166     return _status_flag;
00167   }
00168   
00169   inline void CronousEnv::set_status_flag(int i)
00170   {
00171     _status_flag = i;
00172   }
00173 
00174   inline bool CronousEnv::get_can_attack() const
00175   {
00176     return _can_attack;
00177   }
00178 
00179   inline void CronousEnv::set_can_attack(bool can)
00180   {
00181     _can_attack = can;
00182   }
00183 
00184   inline const tasks::Activity &CronousEnv::get_current_activity() const
00185   {
00186     return *_current_activity;
00187   }
00188 
00189   inline const std::string &CronousEnv::get_name() const
00190   {
00191     return _name;
00192   }
00193   
00194   inline int CronousEnv::get_class() const
00195   {
00196     return _class;
00197   }
00198   
00199   inline int CronousEnv::get_level() const
00200   {
00201     return _level;
00202   }
00203   
00204   inline int CronousEnv::get_str_status_points() const
00205   {
00206     return _str_status_points;
00207   }
00208   
00209   inline int CronousEnv::get_sta_status_points() const
00210   {
00211     return _sta_status_points;
00212   }
00213   
00214   inline int CronousEnv::get_dex_status_points() const
00215   {
00216     return _dex_status_points;
00217   }
00218   
00219   inline int CronousEnv::get_int_status_points() const
00220   {
00221     return _int_status_points;
00222   }
00223   
00224   inline int CronousEnv::get_fame() const
00225   {
00226     return _fame;
00227   }
00228   
00229   inline int CronousEnv::get_free_status_points() const
00230   {
00231     return _free_status_points;
00232   }
00233   
00234   inline int CronousEnv::get_free_skill_points() const
00235   {
00236     return _free_skill_points;
00237   }
00238   
00239   inline int CronousEnv::get_money_in_hand() const
00240   {
00241     return _money_in_hand;
00242   }
00243   
00244   inline int CronousEnv::get_money_in_bank() const
00245   {
00246     return _money_in_bank;
00247   }
00248   
00249   inline void CronousEnv::set_name(const std::string &s)
00250   {
00251     _name = s;
00252   }
00253   
00254   inline void CronousEnv::set_class(int i)
00255   {
00256     _class = i;
00257   }
00258   
00259   inline void CronousEnv::set_level(int i)
00260   {
00261     _level = i;
00262   }
00263   
00264   inline void CronousEnv::set_str_status_points(int i)
00265   {
00266     _str_status_points = i;
00267   }
00268   
00269   inline void CronousEnv::set_sta_status_points(int i)
00270   {
00271     _sta_status_points = i;
00272   }
00273   
00274   inline void CronousEnv::set_dex_status_points(int i)
00275   {
00276     _dex_status_points = i;
00277   }
00278   
00279   inline void CronousEnv::set_int_status_points(int i)
00280   {
00281     _int_status_points = i;
00282   }
00283   
00284   inline void CronousEnv::set_fame(int i)
00285   {
00286     _fame = i;
00287   }
00288   
00289   inline void CronousEnv::set_free_status_points(int i)
00290   {
00291     _free_status_points = i;
00292   }
00293   
00294   inline void CronousEnv::set_free_skill_points(int i)
00295   {
00296     _free_skill_points = i;
00297   }
00298   
00299   inline void CronousEnv::set_money_in_hand(int i)
00300   {
00301     _money_in_hand = i;
00302   }
00303   
00304   inline void CronousEnv::set_money_in_bank(int i)
00305   {
00306     _money_in_bank = i;
00307   }
00308 
00309   inline int CronousEnv::get_hp_max() const
00310   {
00311     return _hp_max;
00312   }
00313   
00314   inline int CronousEnv::get_mp_max() const
00315   {
00316     return _mp_max;
00317   }
00318 
00319   inline int CronousEnv::get_hp() const
00320   {
00321     return _hp;
00322   }
00323 
00324   inline int CronousEnv::get_mp() const
00325   {
00326     return _mp;
00327   }
00328 
00329   inline int CronousEnv::get_weight() const
00330   {
00331     return _weight;
00332   }
00333 
00334   inline void CronousEnv::set_hp(int i)
00335   {
00336     _hp = i;
00337   }
00338 
00339   inline void CronousEnv::set_mp(int i)
00340   {
00341     _mp = i;
00342   }
00343 
00344   inline void CronousEnv::set_weight(int i)
00345   {
00346     _weight = i;
00347   }
00348 
00349   inline void CronousEnv::set_hp_max(int i)
00350   {
00351     _hp_max = i;
00352   }
00353 
00354   inline void CronousEnv::set_mp_max(int i)
00355   {
00356     _mp_max = i;
00357   }
00358 
00359   inline int CronousEnv::get_weight_max() const
00360   {
00361     return _weight_max;
00362   }
00363   
00364   inline void CronousEnv::set_weight_max(int i)
00365   {
00366     _weight_max = i;
00367   }
00368 
00369   inline double CronousEnv::get_experience() const
00370   {
00371     return _experience;
00372   }
00373   
00374   inline void CronousEnv::set_experience(double d)
00375   {
00376     _experience = d;
00377   }
00378 
00379   inline const objects::Items &CronousEnv::get_items() const
00380   {
00381     return _items;
00382   }
00383 
00384   inline objects::Items &CronousEnv::get_items()
00385   {
00386     return _items;
00387   }
00388 
00389   inline void CronousEnv::push_sold_item(int item_id)
00390   {
00391     _sold_items.push_front(item_id);
00392   }
00393 
00394   inline void CronousEnv::push_used_item(int item_id)
00395   {
00396     _used_items.push_front(item_id);
00397   }
00398 
00399   inline int CronousEnv::count_sold_items_in_queue()
00400   {
00401     return (int)_sold_items.size();
00402   }
00403   
00404   inline int CronousEnv::count_used_items_in_queue()
00405   {
00406     return (int)_used_items.size();
00407   }
00408 
00409   inline int CronousEnv::get_amount_of_hp_healed() const
00410   {
00411     return _amount_of_hp_healed;
00412   }
00413   
00414   inline int CronousEnv::get_amount_of_mp_healed() const
00415   {
00416     return _amount_of_mp_healed;
00417   }
00418   
00419   inline void CronousEnv::reset_healing_stats()
00420   {
00421     _amount_of_hp_healed = 0;
00422     _amount_of_mp_healed = 0;
00423   }
00424 
00425   inline void CronousEnv::push_assigned_status(int status_id)
00426   {
00427     _assigned_status.push_front(status_id);
00428   }
00429 
00430   inline void CronousEnv::push_repaired_item(int item_id)
00431   {
00432     _repaired_items.push_front(item_id);
00433   }
00434 
00435   inline int CronousEnv::count_repaired_items_in_queue()
00436   {
00437     return (int)_repaired_items.size();
00438   }
00439 
00440   inline void CronousEnv::push_traded_item(int item_id)
00441   {
00442     _traded_items.push_front(item_id);
00443   }
00444 
00445   inline int CronousEnv::count_traded_items_in_queue()
00446   {
00447     return (int)_traded_items.size();
00448   }
00449 
00450   inline void CronousEnv::push_picked_item(int item_id)
00451   {
00452     _picked_items.push_front(item_id);
00453   }
00454   
00455   inline int CronousEnv::count_picked_items_in_queue()
00456   {
00457     return (int)_picked_items.size();
00458   }
00459 
00460   inline objects::Skills &CronousEnv::get_skills()
00461   {
00462     return _skills;
00463   }
00464 
00465   inline void CronousEnv::push_skill_id(int id)
00466   {
00467     _skill_list.push_front(id);
00468   }
00469 
00470   inline void CronousEnv::push_assigned_skill(int skill_id)
00471   {
00472     _assigned_skill.push_front(skill_id);
00473   }
00474 
00475   inline bool CronousEnv::can_use_skill() const
00476   {
00477     return _auto_skills.empty();
00478   }
00479   
00480   inline bool CronousEnv::get_alive() const
00481   {
00482     return _alive;
00483   }
00484 
00485   inline void CronousEnv::set_alive(bool alive)
00486   {
00487     _alive = alive;
00488   }
00489 
00490   inline const std::string &CronousEnv::get_last_chat_message() const
00491   {
00492     return _last_chat_message;
00493   }
00494   
00495   inline const std::string &CronousEnv::get_last_chat_character() const
00496   {
00497     return _last_chat_character;
00498   }
00499   
00500   inline void CronousEnv::set_last_chat_message(const std::string &message)
00501   {
00502     _last_chat_message = message;
00503   }
00504   
00505   inline void CronousEnv::set_last_chat_character(const std::string &character)
00506   {
00507     _last_chat_character = character;
00508   }
00509 
00510   inline void CronousEnv::push_shop_item(int item_id)
00511   {
00512     _shop_items.push_front(item_id);
00513   }
00514   
00515   inline int CronousEnv::count_shop_item_in_queue() const
00516   {
00517     return (int)_shop_items.size();
00518   }
00519 
00520   inline int CronousEnv::get_last_item_info() const
00521   {
00522     return _last_item_info;
00523   }
00524   
00525   inline void CronousEnv::set_last_item_info(int id)
00526   {
00527     _last_item_info = id;
00528   }
00529 }
00530 
00531 #endif

Cronous Emulatorに対してWed Aug 17 06:01:21 2005に生成されました。  doxygen 1.4.2-20050421