/[adonthell]/adonthell/src/rpg/inventory.cc
ViewVC logotype

Diff of /adonthell/src/rpg/inventory.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by ksterker, Mon Aug 23 06:33:47 2004 UTC revision 1.4 by ksterker, Mon Oct 25 06:50:09 2004 UTC
# Line 21  Line 21 
21    
22    
23  /**  /**
24   * @file   inventory.cc   * @file   rpg/inventory.cc
25   * @author Kai Sterker <kaisterker@linuxgames.com>   * @author Kai Sterker <kaisterker@linuxgames.com>
26   *   *
27   * @brief  Container for items.   * @brief  Container for items.
# Line 64  void inventory::grow (const u_int16 & co Line 64  void inventory::grow (const u_int16 & co
64  }  }
65    
66  // add named slot to inventory  // add named slot to inventory
67  void inventory::add_slot (const std::string & id, const bool & equipment)  void inventory::add_slot (const string & id, const bool & equipment)
68  {  {
69      Slots.push_back (new slot (this, id, equipment));      Slots.push_back (new slot (this, id, equipment));
70  }  }
71    
72  // retrieve named slot from inventory  // retrieve named slot from inventory
73  slot *inventory::get_slot (const std::string & id)  slot *inventory::get_slot (const string & id)
74  {  {
75      std::vector<slot*>::iterator i;      std::vector<slot*>::iterator i;
76            

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26