EvEmu  0.8.4
11 September 2021
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ShipDB.h
Go to the documentation of this file.
1 /*
2  ------------------------------------------------------------------------------------
3  LICENSE:
4  ------------------------------------------------------------------------------------
5  This file is part of EVEmu: EVE Online Server Emulator
6  Copyright 2006 - 2021 The EVEmu Team
7  For the latest information visit https://evemu.dev
8  ------------------------------------------------------------------------------------
9  This program is free software; you can redistribute it and/or modify it under
10  the terms of the GNU Lesser General Public License as published by the Free Software
11  Foundation; either version 2 of the License, or (at your option) any later
12  version.
13 
14  This program is distributed in the hope that it will be useful, but WITHOUT
15  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16  FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
17 
18  You should have received a copy of the GNU Lesser General Public License along with
19  this program; if not, write to the Free Software Foundation, Inc., 59 Temple
20  Place - Suite 330, Boston, MA 02111-1307, USA, or go to
21  http://www.gnu.org/copyleft/lesser.txt.
22  ------------------------------------------------------------------------------------
23  Author: Zhur
24  Updates: Allan
25 */
26 
27 
28 #ifndef __SHIPDB_H_INCL__
29 #define __SHIPDB_H_INCL__
30 
31 #include "ServiceDB.h"
32 
33 class PyRep;
34 class PyTuple;
35 class PyResult;
36 
37 class ShipDB
38 : public ServiceDB
39 {
40 public:
41  // insurance functions -allan 21Jul14
44  bool InsertInsuranceByShipID(uint32 shipID, std::string name, uint32 ownerID, float level, double payOut, bool isCorpItem = false, uint8 numWeeks = 12);
45  static void DeleteInsuranceByShipID(uint32 shipID);
46 
47  float GetShipInsurancePayout(uint32 shipID);
48 
49  bool IsShipInsured(uint32 shipID);
50 
51  // linking save/load methods -allan 05Jan19
52  static void LoadWeaponGroups(uint32 shipID, DBQueryResult& res);
53  // this will delete existing regardless of save state
54  static void SaveWeaponGroups(uint32 shipID, std::multimap<uint32, uint32>& data);
55  static void ClearWeaponGroups(uint32 shipID);
56 };
57 
58 #endif
Base Python wire object.
Definition: PyRep.h:66
unsigned __int8 uint8
Definition: eve-compat.h:46
PyRep * GetInsuranceByOwnerID(uint32 ownerID)
Definition: ShipDB.cpp:46
Python tuple.
Definition: PyRep.h:567
static void SaveWeaponGroups(uint32 shipID, std::multimap< uint32, uint32 > &data)
Definition: ShipDB.cpp:103
Definition: ShipDB.h:37
static void LoadWeaponGroups(uint32 shipID, DBQueryResult &res)
Definition: ShipDB.cpp:98
bool IsShipInsured(uint32 shipID)
Definition: ShipDB.cpp:81
static void DeleteInsuranceByShipID(uint32 shipID)
Definition: ShipDB.cpp:65
float GetShipInsurancePayout(uint32 shipID)
Definition: ShipDB.cpp:70
unsigned __int32 uint32
Definition: eve-compat.h:50
PyRep * GetInsuranceByShipID(uint32 shipID)
Definition: ShipDB.cpp:32
bool InsertInsuranceByShipID(uint32 shipID, std::string name, uint32 ownerID, float level, double payOut, bool isCorpItem=false, uint8 numWeeks=12)
Definition: ShipDB.cpp:56
static void ClearWeaponGroups(uint32 shipID)
Definition: ShipDB.cpp:92