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

item_inst.hxx

説明を見る。
00001 #ifndef ITEM_INST_HXX_
00002 # define ITEM_INST_HXX_
00003 
00004 # include "item_inst.hh"
00005 
00006 namespace objects
00007 {
00008   inline int 
00009   ItemInst::get_item_id() const
00010   {
00011     return _item_id;
00012   }
00013   
00014   inline void 
00015   ItemInst::set_item_id(int item_id)
00016   {
00017     _item_id = item_id;
00018   }
00019   
00020   inline const Item &
00021   ItemInst::get_item() const
00022   {
00023     return _item;
00024   }
00025   
00026   inline const ItemClass &
00027   ItemInst::get_item_class() const
00028   {
00029     return _item_class;
00030   }
00031   
00032   inline int 
00033   ItemInst::get_count() const
00034   {
00035     return _count;
00036   }
00037   
00038   inline void 
00039   ItemInst::set_count(int count)
00040   {
00041     _count = count;
00042   }
00043 
00044   inline bool 
00045   UnidentifiedItem::identified() const
00046   {
00047     return false;
00048   }
00049 
00050   inline bool
00051   UnidentifiedItem::possessed() const
00052   {
00053     return false;
00054   }
00055 
00056   inline bool 
00057   IdentifiedItem::identified() const
00058   {
00059     return true;
00060   }
00061 
00062   inline bool
00063   IdentifiedItem::possessed() const
00064   {
00065     return false;
00066   }
00067 
00068   inline int 
00069   IdentifiedItem::get_durability() const
00070   {
00071     return _durability;
00072   }
00073 
00074   inline void 
00075   IdentifiedItem::set_durability(int i)
00076   {
00077     _durability = i;
00078   }
00079 
00080   inline int
00081   IdentifiedItem::get_level() const
00082   {
00083     return _level;
00084   }
00085 
00086   inline bool 
00087   PossessedItem::possessed() const
00088   {
00089     return true;
00090   }
00091 
00092   inline const ItemContainer &
00093   PossessedItem::get_item_container() const
00094   {
00095     return *_item_container;
00096   }
00097 
00098   inline int 
00099   PossessedItem::get_position() const
00100   {
00101     return _position;
00102   }
00103 
00104   inline void 
00105   PossessedItem::set_item_container(const ItemContainer &ic)
00106   {
00107     _item_container = ⁣
00108   }
00109   
00110   inline void 
00111   PossessedItem::set_position(int i)
00112   {
00113     _position = i;
00114   }
00115 
00116   inline int ItemInScreen::get_pos_x() const
00117   {
00118     return _pos_x;
00119   }
00120   
00121   inline int ItemInScreen::get_pos_y() const
00122   {
00123     return _pos_y;
00124   }
00125 
00126   inline bool ItemInScreen::is_available() const
00127   {
00128     return _available;
00129   }
00130   
00131   inline void ItemInScreen::set_unavailable()
00132   {
00133     _available = false;
00134   }
00135 
00136   inline std::ostream &
00137   operator <<(std::ostream &os, const ItemInst &ii)
00138   {
00139     ii.print(os);
00140     return os;
00141   }
00142 }
00143 
00144 #endif

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