commit
ba42ed3320
@ -1,49 +0,0 @@
|
||||
// Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
|
||||
// Copyright (C) 2010 Winch Gate Property Limited
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Affero General Public License as
|
||||
// published by the Free Software Foundation, either version 3 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 Affero General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Affero General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
|
||||
#ifndef RY_KNOWN_BRICK_INFO_H
|
||||
#define RY_KNOWN_BRICK_INFO_H
|
||||
/*
|
||||
// ---------------------------------------------------------------------------
|
||||
class CStaticGameBrick;
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
struct CKnownBrickInfo
|
||||
{
|
||||
const CStaticGameBrick* Form;
|
||||
uint32 LatencyEndDate;
|
||||
bool OldLatentState;
|
||||
|
||||
CKnownBrickInfo( const CStaticGameBrick *form = NULL ) : Form(form)
|
||||
{
|
||||
LatencyEndDate = 0;
|
||||
OldLatentState = false;
|
||||
}
|
||||
|
||||
/// Serialisation
|
||||
void serial(class NLMISC::IStream &f) throw(NLMISC::EStream)
|
||||
{
|
||||
// f.serial( LatencyEndDate );
|
||||
// f.serial( OldLatentState );
|
||||
// nothing to serial here, the date are no longer meaningful, all bricks are available when the character connects to the game
|
||||
// and the Form is set while setting the databse in the setDatabase() method
|
||||
}
|
||||
};
|
||||
*/
|
||||
#endif // RY_KNOWN_BRICK_INFO_H
|
||||
/* known_brick_info.h */
|
@ -1,90 +0,0 @@
|
||||
// Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
|
||||
// Copyright (C) 2010 Winch Gate Property Limited
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Affero General Public License as
|
||||
// published by the Free Software Foundation, either version 3 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 Affero General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Affero General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// includes
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#include "stdpch.h"
|
||||
//#include "egs_sheets/egs_sheets.h"
|
||||
//#include "egs_sheets/egs_static_encyclo.h"
|
||||
//#include "game_share/msg_encyclopedia.h"
|
||||
//#include "game_share/string_manager_sender.h"
|
||||
//#include "player_manager/player_manager.h"
|
||||
//#include "player_manager/player.h"
|
||||
//#include "mission_manager/mission_manager.h"
|
||||
#include "player_manager/character_achievements.h"
|
||||
#include "player_manager/character.h"
|
||||
#include "phrase_manager/phrase_utilities_functions.h"
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// namespaces
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
using namespace std;
|
||||
using namespace NLMISC;
|
||||
|
||||
NL_INSTANCE_COUNTER_IMPL(CCharacterAchievements);
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// methods CCharacterEncyclopedia
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
CCharacterAchievements::CCharacterAchievements(CCharacter &c) : _Char(c)
|
||||
{
|
||||
init();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
void CCharacterAchievements::init()
|
||||
{
|
||||
nlinfo("hello achievements");
|
||||
//load atoms
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
void CCharacterAchievements::clear()
|
||||
{
|
||||
//clear atoms
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
void CCharacterAchievements::mobKill(TDataSetRow creatureRowId)
|
||||
{
|
||||
const CCreature *creature = CreatureManager.getCreature(creatureRowId);
|
||||
if (creature)
|
||||
{
|
||||
nlinfo("player has killed a mob: %s!",creature->getType().toString().c_str());
|
||||
}
|
||||
}
|
||||
|
||||
void CCharacterAchievements::inPlace(const CPlace *region)
|
||||
{
|
||||
nlinfo("player in region %u",region->getId());
|
||||
}
|
||||
|
||||
void CCharacterAchievements::fameValue(uint32 factionIndex, sint32 playerFame)
|
||||
{
|
||||
nlinfo("fame: f(%u)=>v(%u)",factionIndex,playerFame);
|
||||
}
|
||||
|
||||
void CCharacterAchievements::tickUpdate()
|
||||
{
|
||||
//evaluate atoms
|
||||
}
|
@ -1,78 +0,0 @@
|
||||
// Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
|
||||
// Copyright (C) 2010 Winch Gate Property Limited
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Affero General Public License as
|
||||
// published by the Free Software Foundation, either version 3 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 Affero General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Affero General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#ifndef EGS_CHARACTER_ACHIEVEMENTS_H
|
||||
#define EGS_CHARACTER_ACHIEVEMENTS_H
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// includes
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
// game share
|
||||
//#include "game_share/persistent_data.h"
|
||||
#include "zone_manager.h"
|
||||
#include "creature_manager/creature.h"
|
||||
#include "creature_manager/creature_manager.h"
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
class CCharacter;
|
||||
|
||||
/**
|
||||
* Dynamic part of the encyclopedia stored in a character
|
||||
* This structure is optimized for size because its stored directly in the player persistant data stuff
|
||||
* We use CEncyMsgXXX for sending info to the player
|
||||
* \author Matthieu 'Trap' Besson
|
||||
* \author Nevrax France
|
||||
* \date November 2004
|
||||
*/
|
||||
class CCharacterAchievements
|
||||
{
|
||||
NL_INSTANCE_COUNTER_DECL(CCharacterAchievements);
|
||||
public:
|
||||
|
||||
CCharacterAchievements(CCharacter &c);
|
||||
|
||||
// Construct the encyclopedia album structure from the static sheet that defines encyclopedia
|
||||
// This method ensure that we have at least the same number of album and the same number of thema by album
|
||||
// as in the sheets defines the encyclopedia
|
||||
void init();
|
||||
|
||||
// remove all
|
||||
void clear();
|
||||
|
||||
void mobKill(TDataSetRow creatureRowId);
|
||||
|
||||
void inPlace(const CPlace *region);
|
||||
|
||||
void fameValue(uint32 factionIndex, sint32 playerFame);
|
||||
|
||||
void tickUpdate();
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
// The parent class
|
||||
CCharacter &_Char;
|
||||
|
||||
};
|
||||
|
||||
#endif // EGS_CHARACTER_ACHIEVEMENTS_H
|
Loading…
Reference in New Issue