aboutsummaryrefslogtreecommitdiff
path: root/src/player.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/player.hh')
-rw-r--r--src/player.hh136
1 files changed, 0 insertions, 136 deletions
diff --git a/src/player.hh b/src/player.hh
deleted file mode 100644
index 0731f11..0000000
--- a/src/player.hh
+++ /dev/null
@@ -1,136 +0,0 @@
-#ifndef TIBIA_PLAYER_HH_
-#define TIBIA_PLAYER_HH_ 1
-
-#include "common.hh"
-#include "containers.hh"
-#include "creature.hh"
-
-struct TPlayerData {
- uint32 CharacterID;
- pid_t Locked;
- int Sticky;
- bool Dirty;
- int Race;
- TOutfit OriginalOutfit;
- TOutfit CurrentOutfit;
- time_t LastLoginTime;
- time_t LastLogoutTime;
- int startx;
- int starty;
- int startz;
- int posx;
- int posy;
- int posz;
- int Profession;
- int PlayerkillerEnd;
- int Actual[25];
- int Maximum[25];
- int Minimum[25];
- int DeltaAct[25];
- int MagicDeltaAct[25];
- int Cycle[25];
- int MaxCycle[25];
- int Count[25];
- int MaxCount[25];
- int AddLevel[25];
- int Experience[25];
- int FactorPercent[25];
- int NextLevel[25];
- int Delta[25];
- uint8 SpellList[256];
- int QuestValues[500];
- int MurderTimestamps[20];
- uint8 *Inventory;
- int InventorySize;
- uint8 *Depot[9];
- int DepotSize[9];
- uint32 AccountID;
- int Sex;
- char Name[30];
- uint8 Rights[12];
- char Guild[31];
- char Rank[31];
- char Title[31];
- int Buddies;
- uint32 Buddy[100];
- char BuddyName[100][30];
- uint32 EarliestYellRound;
- uint32 EarliestTradeChannelRound;
- uint32 EarliestSpellTime;
- uint32 EarliestMultiuseTime;
- uint32 TalkBufferFullTime;
- uint32 MutingEndRound;
- uint32 Addressees[20];
- uint32 AddresseesTimes[20];
- int NumberOfMutings;
-};
-
-struct TPlayer: TCreature {
- // REGULAR FUNCTIONS
- // =========================================================================
- uint8 GetRealProfession(void);
- uint8 GetEffectiveProfession(void);
- uint8 GetActiveProfession(void);
- bool GetActivePromotion(void);
- void ClearProfession(void);
- void SetProfession(uint8 Profession);
-
- int GetQuestValue(int Number);
- void SetQuestValue(int Number, int Value);
-
- uint32 GetPartyLeader(bool CheckFormer);
-
- bool SpellKnown(int SpellNr);
-
- bool IsAttackJustified(uint32 Victim);
- void RecordAttack(uint32 Victim);
- void RecordMurder(uint32 Victim);
-
- void CheckState(void);
-
- // VIRTUAL FUNCTIONS
- // =========================================================================
- // TODO
-
- // DATA
- // =========================================================================
- //TCreature super_TCreature; // IMPLICIT
- uint32 AccountID;
- char Guild[31];
- char Rank[31];
- char Title[31];
- char IPAddress[16];
- uint8 Rights[12];
- Object Depot;
- int DepotNr;
- int DepotSpace;
- RESULT ConstructError;
- TPlayerData *PlayerData;
- Object TradeObject;
- uint32 TradePartner;
- bool TradeAccepted;
- int OldState;
- uint32 Request;
- int RequestTimestamp;
- uint32 RequestProcessingGamemaster;
- int TutorActivities;
- uint8 SpellList[256];
- int QuestValues[500];
- Object OpenContainer[16];
- vector<uint32> AttackedPlayers;
- int NumberOfAttackedPlayers;
- bool Aggressor;
- vector<uint32> FormerAttackedPlayers;
- int NumberOfFormerAttackedPlayers;
- bool FormerAggressor;
- uint32 FormerLogoutRound;
- uint32 PartyLeader;
- uint32 PartyLeavingRound;
- uint32 TalkBufferFullTime;
- uint32 MutingEndRound;
- int NumberOfMutings;
- uint32 Addressees[20];
- uint32 AddresseesTimes[20];
-};
-
-#endif //TIBIA_PLAYER_HH_