Argentum Online - Servidor
banker.h
1 #ifndef BANKER_H
2 #define BANKER_H
3 
4 #include "npc.h"
5 #include "player.h"
6 
7 class Banker : public Npc {
8  public:
9  Banker(EntityId entity_id, nlohmann::json npc_info, Map& map);
10  ~Banker();
17  const std::string list_vault(std::string player_name) const;
18  void deposit_gold(uint32_t amount, Player *player);
19  void withdraw_gold(uint32_t amount, Player *player);
20  void deposit_item(SlotId slot, uint32_t amount, Player *player);
21  void withdraw_item(SlotId slot, uint32_t amount, Player *player);
22 };
23 
24 #endif // BANKER_H
Banker
Definition: banker.h:7
Banker::list_vault
const std::string list_vault(std::string player_name) const
Lista la boveda asociada al jugador.
Definition: banker.cpp:12
Npc
Definition: npc.h:10
player.h
Map
Definition: map.h:47
Player
Definition: player.h:14