EvEmu  0.8.4
11 September 2021
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
StandingDB.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 __STANDINGDB_H_INCL__
29 #define __STANDINGDB_H_INCL__
30 
31 #include "ServiceDB.h"
32 #include "packets/Standing.h"
33 
34 class PyRep;
35 class Client;
36 
38 : public ServiceDB
39 {
40 public:
42  PyRep* GetCorpStandings(Client* pClient);
43  PyRep* GetCharStandings(Client* pClient);
46  PyRep* GetStandingTransactions(Call_GetStandingTransactions &args);
48 
49 
50  /* all standings are in same table now, but follow identical rules
51  * NPC Faction<-->NPC Faction - populated, hard-coded -- cant change
52  * agent-->char, agent-->PC corp -- changed by missions status'
53  * corporation<-->alliance, alliance<-->alliance -- changed thru Corp window
54  * corporation-->character, corporation<-->corporation -- changed thru Corp window
55  * character<-->character, character-->corporation -- changed thru PnP window
56  * NPC corp-->char, NPC corp-->PC corp -- changed by missions and faction kills
57  */
58  static float GetStanding(uint32 fromID, uint32 toID);
59 
60  static void SetStanding(uint32 fromID, uint32 toID, float standing);
61  static void UpdateStanding(uint32 fromID, uint32 toID, float standing);
62  static void SaveStandingChanges(uint32 fromID, uint32 toID, uint16 eventType, float amount, std::string msg);
63 
64  static PyRep* GetMyStandings(uint32 charID);
65 };
66 
67 #endif
static float GetStanding(uint32 fromID, uint32 toID)
Definition: StandingDB.cpp:142
Base Python wire object.
Definition: PyRep.h:66
PyRep * GetCharNPCStandings(uint32 charID)
Definition: StandingDB.cpp:86
static PyObjectEx * GetFactionStandings()
Definition: StandingDB.cpp:56
* args
Python extended object.
Definition: PyRep.h:861
static void UpdateStanding(uint32 fromID, uint32 toID, float standing)
Definition: StandingDB.cpp:163
static PyRep * GetMyStandings(uint32 charID)
Definition: StandingDB.cpp:64
PyRep * GetStandingTransactions(Call_GetStandingTransactions &args)
Definition: StandingDB.cpp:112
Definition: Client.h:66
PyRep * PrimeCharStandings(uint32 charID)
Definition: StandingDB.cpp:94
unsigned __int32 uint32
Definition: eve-compat.h:50
PyRep * GetCorpStandings(Client *pClient)
Definition: StandingDB.cpp:79
static void SetStanding(uint32 fromID, uint32 toID, float standing)
Definition: StandingDB.cpp:157
PyRep * GetCharStandings(Client *pClient)
Definition: StandingDB.cpp:71
PyRep * GetStandingCompositions(uint32 fromID, uint32 toID)
Definition: StandingDB.cpp:184
static void SaveStandingChanges(uint32 fromID, uint32 toID, uint16 eventType, float amount, std::string msg)
Definition: StandingDB.cpp:174
unsigned __int16 uint16
Definition: eve-compat.h:48