EvEmu  0.8.4
11 September 2021
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
SystemDB.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 #ifndef __SYSTEMDB_H_INCL__
28 #define __SYSTEMDB_H_INCL__
29 
30 #include "ServiceDB.h"
31 
32 class SystemDB
33 : public ServiceDB
34 {
35 public:
37  static PyObject* ListJumps(uint32);
38  static PyPackedRow* GetSolarSystem(uint32 ssid);
39 
40  static void GetGates(uint32 systemID, std::vector< DBGPointEntity >& gateIDs);
41 
42  void GetBelts(uint32 systemID, std::vector< DBGPointEntity >& beltIDs, uint8& total);
43  void GetMoons(uint32 systemID, std::vector< DBGPointEntity >& moonIDs, uint8& total);
44  void GetPlanets(uint32 systemID, std::vector<DBGPointEntity>& planetIDs, uint8& total);
45 
46  static bool GetWrecksToTypes(DBQueryResult& res);
47 
48  static void GetLootGroups(DBQueryResult& res);
49  static void GetLootGroupTypes(DBQueryResult& res);
50 
52 
53  double GetItemTypeRadius( uint32 typeID );
54  double GetCelestialRadius(uint32 itemID);
55  static GPoint GetSolarSystemPosition(uint32 systemID);
56 
57  static bool LoadSystemStaticEntities(uint32 systemID, std::vector<DBSystemEntity>& into);
58  static bool LoadSystemDynamicEntities(uint32 systemID, std::vector<DBSystemDynamicEntity>& into);
59  static bool LoadPlayerDynamicEntities(uint32 systemID, std::vector<DBSystemDynamicEntity>& into);
60 };
61 
62 
63 #endif
unsigned __int8 uint8
Definition: eve-compat.h:46
static bool LoadSystemDynamicEntities(uint32 systemID, std::vector< DBSystemDynamicEntity > &into)
Definition: SystemDB.cpp:137
double GetCelestialRadius(uint32 itemID)
Definition: SystemDB.cpp:301
void GetBelts(uint32 systemID, std::vector< DBGPointEntity > &beltIDs, uint8 &total)
Definition: SystemDB.cpp:381
static void GetLootGroups(DBQueryResult &res)
Definition: SystemDB.cpp:322
static PyPackedRow * GetSolarSystem(uint32 ssid)
Definition: SystemDB.cpp:58
static bool LoadPlayerDynamicEntities(uint32 systemID, std::vector< DBSystemDynamicEntity > &into)
Definition: SystemDB.cpp:208
static void GetLootGroupTypes(DBQueryResult &res)
Definition: SystemDB.cpp:330
static PyObject * ListJumps(uint32)
Definition: SystemDB.cpp:41
double GetItemTypeRadius(uint32 typeID)
Definition: SystemDB.cpp:288
void GetMoons(uint32 systemID, std::vector< DBGPointEntity > &moonIDs, uint8 &total)
Definition: SystemDB.cpp:359
Definition: gpoint.h:33
Python object.
Definition: PyRep.h:826
void GetPlanets(uint32 systemID, std::vector< DBGPointEntity > &planetIDs, uint8 &total)
Definition: SystemDB.cpp:338
static GPoint GetSolarSystemPosition(uint32 systemID)
Definition: SystemDB.cpp:89
unsigned __int32 uint32
Definition: eve-compat.h:50
static uint32 GetObjectLocationID(uint32 itemID)
Definition: SystemDB.cpp:275
static bool LoadSystemStaticEntities(uint32 systemID, std::vector< DBSystemEntity > &into)
Definition: SystemDB.cpp:110
typeID Spawn an NPC with the specified type text Search for items matching the specified query() type()() itemID() copy() materialLevel()() itemID(attributeID)-Retrieves attribute value." ) COMMAND( setattr
static bool GetWrecksToTypes(DBQueryResult &res)
Definition: SystemDB.cpp:314
PyObject * ListFactions()
Definition: SystemDB.cpp:31
Packed row.
Definition: PyRep.h:961
static void GetGates(uint32 systemID, std::vector< DBGPointEntity > &gateIDs)
Definition: SystemDB.cpp:404