added source folders
This commit is contained in:
1 parent
f23521f720
commit
cfdc19df45
145 files changed
+54574
No files matched your search
@@ -0,0 +1,170 @@
|
||||
/*
|
||||
Rose Online Server Emulator
|
||||
Copyright (C) 2006,2007 OSRose Team http://www.osrose.net
|
||||
|
||||
This program is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU General Public License
|
||||
as published by the Free Software Foundation; either version 2
|
||||
of the License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
depeloped with Main erose/hrose source server + some change from the original eich source
|
||||
*/
|
||||
#ifndef _ROSE_PLAYER_
|
||||
#define _ROSE_PLAYER_
|
||||
#include "character.h"
|
||||
|
||||
/// Forward Declarations
|
||||
class CMonster; // Forward declare
|
||||
class CPlayer: public CCharacter
|
||||
{
|
||||
|
||||
public:
|
||||
CPlayer( CClientSocket* );
|
||||
~CPlayer( );
|
||||
|
||||
//
|
||||
CClientSocket* client;
|
||||
bool questdebug;// Send PM's with quest information
|
||||
bool Saved;// already save this player?(used ondisconnect/returnchar)
|
||||
bool isInvisibleMode;
|
||||
|
||||
// Fairy
|
||||
bool Fairy;
|
||||
UINT FairyListIndex;
|
||||
|
||||
// variables
|
||||
USEDITEM* UsedItem;
|
||||
INFO* CharInfo;
|
||||
RIDE* Ride;
|
||||
TRADE* Trade;
|
||||
PARTY* Party;
|
||||
SHOP* Shop;
|
||||
SESSION* Session;
|
||||
CLAN* Clan;
|
||||
UNION_s* Union_s;
|
||||
ATTRIBUTES* Attr;
|
||||
CRespawnPoints GMRespawnPoints;
|
||||
|
||||
// Inventory/storage
|
||||
CItem storageitems[MAX_STORAGE];
|
||||
unsigned int nstorageitems;
|
||||
CItem items[MAX_INVENTORY];
|
||||
|
||||
// skills/quickbar
|
||||
SKILLS cskills[MAX_SKILL];
|
||||
UINT bskills[MAX_BASICSKILL];
|
||||
UINT quickbar[MAX_QUICKBAR];
|
||||
unsigned short askill[30];
|
||||
unsigned char askilllvl[30];
|
||||
unsigned short pskill[30];
|
||||
unsigned char pskilllvl[30];
|
||||
int p_skills;
|
||||
|
||||
// ExJam Quest Code - Info
|
||||
DWORD ActiveQuest; //active quest #
|
||||
int CheckQuest; // The currently checked quest.
|
||||
strings TriggerName[10];
|
||||
SQuestData quest; // Character's quest information
|
||||
int NPCvar; // holds reference value for ObjVar global structure
|
||||
int RefVar; // holds reference value for second part of ObjVar structure
|
||||
|
||||
// Time
|
||||
clock_t lastRegenTime;
|
||||
clock_t lastSaveTime;
|
||||
clock_t lastGG;
|
||||
|
||||
// Visible Lists
|
||||
vector<CPlayer*> VisiblePlayers; // Visible players
|
||||
vector<CDrop*> VisibleDrops; // Visible drops
|
||||
vector<unsigned int> VisibleMonsters; // Visible monsters
|
||||
vector<CNPC*> VisibleNPCs; // Visible npcs
|
||||
|
||||
// Battle Events
|
||||
void onCheckForMonsterQuests_event (CMonster* Monster); // Called if the character had first hit and monster was killed.
|
||||
|
||||
// Functions
|
||||
bool CheckPlayerLevelUP( );
|
||||
bool canUseSkill(CSkills* skill);
|
||||
void SetStats( );
|
||||
bool GetPlayerInfo( );
|
||||
bool IsMonster( );
|
||||
bool CleanPlayerVector( );
|
||||
bool loaddata( );
|
||||
void savedata( );
|
||||
void quicksave( );
|
||||
void saveinventory( );
|
||||
void loadinventory( );
|
||||
void savestorage( );
|
||||
void SaveBackupStorage( int logstate );
|
||||
void loadstorage( );
|
||||
UINT GetNewStorageItemSlot( CItem thisitem );
|
||||
UINT GetNewItemSlot( CItem thisitem );
|
||||
bool ClearObject( unsigned int otherclientid );
|
||||
void RestartPlayerVal( );
|
||||
bool Regeneration( );
|
||||
bool PlayerHeal( );
|
||||
bool VisiblityList( );
|
||||
bool ChangeDialog( unsigned int npc, unsigned int dialog, unsigned int eventid = 0 );
|
||||
bool SpawnToPlayer( CPlayer* player, CPlayer* otherclient );
|
||||
bool RespawnPlayer(CPlayer* thisclient);
|
||||
bool UpdateValues( );
|
||||
void ReduceABC( );
|
||||
CParty* GetParty( );
|
||||
CLAN* GetClan( );
|
||||
unsigned int AddItem( CItem item );
|
||||
unsigned int Getnstorageitems( CPlayer* thisclient );
|
||||
void UpdateInventory(unsigned int slot1, unsigned int slot2=0xffff );
|
||||
|
||||
// ExJam Quest Code
|
||||
void savequests( CPlayer* thisclient );
|
||||
SQuest* GetActiveQuest( );
|
||||
int GetQuestVar(short nVarType, short nVarNO);
|
||||
void SetQuestVar(short nVarType, short nVarNO, short nValue);
|
||||
int ExecuteQuestTrigger(dword hash);
|
||||
//PY Quest stuff
|
||||
void SetQuestFlag(dword flagid, bool value);
|
||||
void GetQuestFlag(dword falgid);
|
||||
|
||||
|
||||
// Player Stats
|
||||
unsigned int GetAttackPower( );
|
||||
unsigned int GetDefense( );
|
||||
unsigned int GetDodge( );
|
||||
unsigned int GetXPRate( );
|
||||
unsigned int GetItemDropRate( );
|
||||
unsigned int GetItemDropCountRate( );
|
||||
unsigned int GetZulyDropRate( );
|
||||
unsigned int GetGreyDrops( );
|
||||
unsigned int GetAccury( );
|
||||
unsigned int GetMagicDefense( );
|
||||
unsigned int GetMagicAttack( );
|
||||
unsigned int GetCritical( );
|
||||
unsigned int GetAttackSpeed( );
|
||||
unsigned int GetMoveSpeed( );
|
||||
unsigned int GetMaxHP( );
|
||||
unsigned int GetMaxMP( );
|
||||
float GetAttackDistance( );
|
||||
unsigned int GetHPRegenAmount( );
|
||||
unsigned int GetMPRegenAmount( );
|
||||
unsigned int GetMaxWeight( );
|
||||
unsigned int GetCurrentWeight( );
|
||||
unsigned int GetMPReduction( );
|
||||
unsigned int GetMaxSummonGauge( );
|
||||
void GetExtraStats( );
|
||||
unsigned int GetLevelEXP( );
|
||||
unsigned int GetInt( );
|
||||
// Skill
|
||||
int GetNewSkillSlot(char skilltype);
|
||||
void takeSkillCost( CSkills* skill );
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user