warning_v2.diff
| b/code/ryzom/CMakeModules/nel.cmake Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 66 | 66 |
SET(NL_RELEASE_CFLAGS "/Ox /Ob2 /Oi /Ot /Oy /GT /GF") |
| 67 | 67 |
SET(NL_RELEASEDEBUG_CFLAGS "/DNL_RELEASE_DEBUG /Ob2 /GF") |
| 68 | 68 |
ELSE(WIN32) |
| 69 |
SET(PLATFORM_CFLAGS "-ftemplate-depth-24 -D_REENTRANT -Wall -ansi -W -Wpointer-arith -Wsign-compare -Wno-deprecated-declarations -Wno-multichar -Wno-long-long -Wno-unused") |
|
| 69 |
SET(PLATFORM_CFLAGS "-ftemplate-depth-24 -D_REENTRANT -Wall -ansi -W -Wpointer-arith -Wsign-compare -Wno-deprecated-declarations -Wno-multichar -Wno-long-long -Wno-unused -Wno-comment")
|
|
| 70 | 70 |
IF(WITH_COVERAGE) |
| 71 | 71 |
SET(PLATFORM_CFLAGS "-fprofile-arcs -ftest-coverage ${PLATFORM_CFLAGS}")
|
| 72 | 72 |
ENDIF(WITH_COVERAGE) |
| b/code/ryzom/client/src/cdb_branch.cpp Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 518 | 518 |
if ( bitfield[i] ) |
| 519 | 519 |
{
|
| 520 | 520 |
if(VerboseDatabase) |
| 521 |
{
|
|
| 521 | 522 |
nldebug( "CDB/ATOM: Reading prop[%u] of atom", i ); |
| 523 |
} |
|
| 522 | 524 |
atomIndex = i; |
| 523 | 525 |
CCDBNodeLeaf *leaf = findLeafAtCount( atomIndex ); |
| 524 | 526 |
if ( leaf ) |
| b/code/ryzom/client/src/client_sheets/attack_id_sheet.cpp Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 113 | 113 |
case CAttackIDSheet::Magic: return lhs.SpellInfo == rhs.SpellInfo; |
| 114 | 114 |
case CAttackIDSheet::Creature: return lhs.CreatureAttackIndex == rhs.CreatureAttackIndex; |
| 115 | 115 |
case CAttackIDSheet::DamageShield: return lhs.DamageShieldType == rhs.DamageShieldType; |
| 116 |
default: return false; |
|
| 116 | 117 |
} |
| 117 |
return false; |
|
| 118 | 118 |
} |
| 119 | 119 |
|
| 120 | 120 |
//***************************************************************************************** |
| ... | ... | |
| 128 | 128 |
case CAttackIDSheet::Magic: return lhs.SpellInfo < rhs.SpellInfo; |
| 129 | 129 |
case CAttackIDSheet::Creature: return lhs.CreatureAttackIndex < rhs.CreatureAttackIndex; |
| 130 | 130 |
case CAttackIDSheet::DamageShield: return lhs.DamageShieldType < rhs.DamageShieldType; |
| 131 |
default: return false; |
|
| 131 | 132 |
} |
| 132 |
return false; |
|
| 133 | 133 |
} |
| 134 | 134 |
|
| 135 | 135 |
//***************************************************************************************** |
| b/code/ryzom/client/src/client_sheets/body_to_bone_sheet.cpp Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 86 | 86 |
case BODY::HHands: return ClientSheetsStrings.get(side == BODY::Left ? LeftHand : RightHand); |
| 87 | 87 |
case BODY::HLegs: return ClientSheetsStrings.get(side == BODY::Left ? LeftLeg : RightLeg); |
| 88 | 88 |
case BODY::HFeet: return ClientSheetsStrings.get(side == BODY::Left ? LeftFoot : RightFoot); |
| 89 |
default: return NULL; |
|
| 89 | 90 |
} |
| 90 |
return NULL; |
|
| 91 | 91 |
} |
| b/code/ryzom/client/src/client_sheets/item_sheet.cpp Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 742 | 742 |
return Tool.Skill; |
| 743 | 743 |
case ITEMFAMILY::CRAFTING_TOOL: |
| 744 | 744 |
return SKILLS::SC; |
| 745 |
default: return SKILLS::unknown; |
|
| 745 | 746 |
} |
| 746 |
return SKILLS::unknown; |
|
| 747 | 747 |
} |
| 748 | 748 |
|
| 749 | 749 |
// *************************************************************************** |
| b/code/ryzom/client/src/client_sheets/plant_sheet.cpp Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 139 | 139 |
NLMISC::clamp(MinDuration, 0.f, CycleDuration /*- startHourMaxInterval*/); |
| 140 | 140 |
NLMISC::clamp(MaxDuration, 0.f, CycleDuration /*- startHourMaxInterval*/); |
| 141 | 141 |
|
| 142 |
if (!ok) nldebug("Key not found.");
|
|
| 142 |
if (!ok) |
|
| 143 |
{
|
|
| 144 |
nldebug("Key not found.");
|
|
| 145 |
} |
|
| 143 | 146 |
} |
| 144 | 147 |
|
| 145 | 148 |
//======================================================= |
| ... | ... | |
| 213 | 216 |
item.getValueByName(_CoarseMeshDist, "3D.CoarseMeshDist") |
| 214 | 217 |
) |
| 215 | 218 |
) |
| 216 |
nldebug("Key not found.");
|
|
| 219 |
{
|
|
| 220 |
nldebug("Key not found.");
|
|
| 221 |
} |
|
| 217 | 222 |
// serial fxs by season |
| 218 | 223 |
SeasonFX[EGSPD::CSeason::Spring].build(item, Id, "3D.SpringFX."); |
| 219 | 224 |
SeasonFX[EGSPD::CSeason::Summer].build(item, Id, "3D.SummerFX."); |
| b/code/ryzom/client/src/continent_manager.cpp Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 397 | 397 |
CContinent *pCont = it->second; |
| 398 | 398 |
nlinfo("Looking into %s", pCont->SheetName.c_str());
|
| 399 | 399 |
if (pCont->Zone.VPoints.size() > 0) // Patch because some continent have not been done yet |
| 400 |
if (pCont->Zone.contains(fPos)) |
|
| 401 |
{
|
|
| 402 |
// load the continent selected. |
|
| 403 |
select (it->first, pos, progress); |
|
| 404 |
return; |
|
| 405 |
} |
|
| 406 |
else |
|
| 407 |
{
|
|
| 408 |
/* |
|
| 409 |
nlwarning("**********************************************");
|
|
| 410 |
nlwarning("Start position (%s) not found in continent %s", NLMISC::toString(pos.asVector()).c_str(), it->first.c_str());
|
|
| 411 |
for(uint k = 0; k < pCont->Zone.VPoints.size(); ++k) |
|
| 400 |
{
|
|
| 401 |
if (pCont->Zone.contains(fPos)) |
|
| 412 | 402 |
{
|
| 413 |
nlwarning("zone point %d = %s", (int)k, NLMISC::toString(pCont->Zone.VPoints[k]).c_str());
|
|
| 403 |
// load the continent selected. |
|
| 404 |
select (it->first, pos, progress); |
|
| 405 |
return; |
|
| 414 | 406 |
} |
| 415 |
*/ |
|
| 407 |
else |
|
| 408 |
{
|
|
| 409 |
/* |
|
| 410 |
nlwarning("**********************************************");
|
|
| 411 |
nlwarning("Start position (%s) not found in continent %s", NLMISC::toString(pos.asVector()).c_str(), it->first.c_str());
|
|
| 412 |
for(uint k = 0; k < pCont->Zone.VPoints.size(); ++k) |
|
| 413 |
{
|
|
| 414 |
nlwarning("zone point %d = %s", (int)k, NLMISC::toString(pCont->Zone.VPoints[k]).c_str());
|
|
| 415 |
} |
|
| 416 |
*/ |
|
| 417 |
} |
|
| 416 | 418 |
} |
| 417 | 419 |
it++; |
| 418 | 420 |
} |
| b/code/ryzom/client/src/debug_client.cpp Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 22 | 22 |
///////////// |
| 23 | 23 |
#include "stdpch.h" // First include for pre-compiled headers. |
| 24 | 24 |
|
| 25 |
#include <limits> |
|
| 26 |
|
|
| 25 | 27 |
// OS. |
| 26 | 28 |
#ifdef NL_OS_WINDOWS |
| 27 | 29 |
# include <windows.h> |
| ... | ... | |
| 249 | 251 |
nlwarning("There are %*lx free %sbytes of virtual memory.\n", WIDTH, stat.dwAvailVirtual/DIV, divisor);
|
| 250 | 252 |
*/ |
| 251 | 253 |
#endif |
| 254 |
return std::numeric_limits<double>::quiet_NaN(); |
|
| 252 | 255 |
} |
| 253 | 256 |
|
| 254 | 257 |
|
| b/code/ryzom/client/src/entity_cl.h Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 233 | 233 |
void sheetId(const NLMISC::CSheetId &id) {_SheetId = id;}
|
| 234 | 234 |
|
| 235 | 235 |
/// Return the persistent NPC alias of entity (0 if N/A). |
| 236 |
const uint32 npcAlias() const {return _NPCAlias; }
|
|
| 236 |
uint32 npcAlias() const {return _NPCAlias; }
|
|
| 237 | 237 |
/// Set the persistent NPC alias of the entity. |
| 238 | 238 |
void npcAlias(uint32 alias) {_NPCAlias = alias; }
|
| 239 | 239 |
|
| ... | ... | |
| 411 | 411 |
|
| 412 | 412 |
|
| 413 | 413 |
/// Return the entity current behaviour. |
| 414 |
const MBEHAV::EBehaviour behaviour() const {return _CurrentBehaviour.Behaviour;}
|
|
| 414 |
MBEHAV::EBehaviour behaviour() const {return _CurrentBehaviour.Behaviour;}
|
|
| 415 | 415 |
|
| 416 | 416 |
/** |
| 417 | 417 |
* Show or Hide the entity. |
| b/code/ryzom/client/src/far_tp.cpp Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 636 | 636 |
SM_EVENT(ev_quit, st_end); |
| 637 | 637 |
SM_END_EVENT_TABLE |
| 638 | 638 |
break; |
| 639 |
default: |
|
| 640 |
break; |
|
| 639 | 641 |
} |
| 640 | 642 |
} |
| 641 | 643 |
} |
| ... | ... | |
| 747 | 749 |
throw "Protocol error"; |
| 748 | 750 |
if (sb._LastJoinSessionResult == 16) |
| 749 | 751 |
{
|
| 750 |
#pragma message (NL_LOC_WRN "inform the player that he is banned from the ring") |
|
| 752 |
#ifdef NL_PRAGMA_MESSAGE |
|
| 753 |
#pragma message (NL_LOC_WRN "inform the player that he is banned from the ring") |
|
| 754 |
#endif // NL_PRAGMA_MESSAGE |
|
| 751 | 755 |
throw "User ban from the ring"; |
| 752 | 756 |
} |
| 753 | 757 |
if (sb._LastJoinSessionResult != 0) |
| b/code/ryzom/client/src/game_context_menu.cpp Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 955 | 955 |
} |
| 956 | 956 |
|
| 957 | 957 |
// Don't enable anything if index not found (e.g. the character is not the owner of the animal) |
| 958 |
if ( (index == -1) || (!UserEntity) ) |
|
| 958 |
if ( (index == (uint)-1) || (!UserEntity) )
|
|
| 959 | 959 |
return false; |
| 960 | 960 |
|
| 961 | 961 |
// Get animal status and type |
| b/code/ryzom/client/src/graph.h Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 93 | 93 |
NLMISC::TTime quantum, |
| 94 | 94 |
float maxValue, uint page, |
| 95 | 95 |
bool lineMode = false) |
| 96 |
: Name(name), X(x), Y(y), Width(width), Height(height), BackColor(backColor), Quantum(quantum),
|
|
| 97 |
CurrentQuantumStart(ryzomGetLocalTime ()), MaxValue(maxValue), Peak(0.0f), LineMode(lineMode), PrevY(y), Page(page)
|
|
| 96 |
: Name(name), X(x), Y(y), Width(width), Height(height), BackColor(backColor), MaxValue(maxValue),
|
|
| 97 |
Peak(0.0f), LineMode(lineMode), PrevY(y), Page(page), Quantum(quantum), CurrentQuantumStart(ryzomGetLocalTime ())
|
|
| 98 | 98 |
{
|
| 99 | 99 |
if (_Graphs == NULL) |
| 100 | 100 |
{
|
| b/code/ryzom/client/src/ground_fx_manager.cpp Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 60 | 60 |
using namespace NLMISC; |
| 61 | 61 |
|
| 62 | 62 |
//***************************************************************************** |
| 63 |
CGroundFXManager::CGroundFXManager() : _MaxDist(50.f), |
|
| 63 |
CGroundFXManager::CGroundFXManager() : |
|
| 64 |
_MinSpeed(1.5f), |
|
| 65 |
_MaxSpeed(6.f), |
|
| 66 |
_SpeedWaterWalkFast(3.f), |
|
| 67 |
_SpeedWaterSwimFast(3.f), |
|
| 68 |
_MaxDist(50.f), |
|
| 64 | 69 |
_MaxNumFX(10), |
| 65 | 70 |
_NumFX(0), |
| 66 | 71 |
_MaxNumCachedFX(10), |
| 67 | 72 |
_NumCachedFX(0), |
| 68 | 73 |
_NumInstances(0), |
| 69 |
_Scene(NULL), |
|
| 70 |
_MinSpeed(1.5f), |
|
| 71 |
_MaxSpeed(6.f), |
|
| 72 |
_SpeedWaterWalkFast(3.f), |
|
| 73 |
_SpeedWaterSwimFast(3.f) |
|
| 74 |
_Scene(NULL) |
|
| 74 | 75 |
{
|
| 75 | 76 |
H_AUTO_USE(RZ_GroundFXManager) |
| 76 | 77 |
// Construct |
| b/code/ryzom/client/src/interface_v3/chat_filter.h Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 81 | 81 |
virtual void chatWindowRemoved(CChatWindow *cw); |
| 82 | 82 |
// |
| 83 | 83 |
// copy not supported |
| 84 |
CChatInputFilter(const CChatInputFilter &/* other */) { nlassert(0); }
|
|
| 85 |
CChatInputFilter &operator=(const CChatInputFilter &/* other */) { nlassert(0); return *this; }
|
|
| 84 |
CChatInputFilter(const CChatInputFilter &/* other */);
|
|
| 85 |
CChatInputFilter &operator=(const CChatInputFilter &/* other */);
|
|
| 86 | 86 |
|
| 87 | 87 |
}; |
| 88 | 88 |
|
| ... | ... | |
| 157 | 157 |
void chatWindowRemoved(CChatWindow *cw); |
| 158 | 158 |
void msgEntered(const ucstring &msg, CChatWindow *chatWindow); |
| 159 | 159 |
// copy not supported |
| 160 |
CChatTargetFilter(const CChatTargetFilter &/* other */) { nlassert(0); }
|
|
| 161 |
CChatTargetFilter& operator=(const CChatTargetFilter &/* other */) { nlassert(0); return *this; }
|
|
| 160 |
CChatTargetFilter(const CChatTargetFilter &/* other */);
|
|
| 161 |
CChatTargetFilter& operator=(const CChatTargetFilter &/* other */);
|
|
| 162 | 162 |
}; |
| 163 | 163 |
|
| 164 | 164 |
#endif |
| b/code/ryzom/client/src/interface_v3/inventory_manager.h Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 452 | 452 |
class CDBForageQQObs : public ICDBNode::IPropertyObserver |
| 453 | 453 |
{
|
| 454 | 454 |
public: |
| 455 |
CDBForageQQObs() : WhichOne(~0), FullValue(0.0f), ICDBNode::IPropertyObserver() {}
|
|
| 455 |
CDBForageQQObs() : ICDBNode::IPropertyObserver(), WhichOne(~0), FullValue(0.0f) {}
|
|
| 456 | 456 |
virtual void update(ICDBNode *node); |
| 457 | 457 |
uint WhichOne; |
| 458 | 458 |
float FullValue; |
| b/code/ryzom/client/src/interface_v3/lua_helper.h Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 354 | 354 |
|
| 355 | 355 |
private: |
| 356 | 356 |
// this object isn't intended to be copied |
| 357 |
CLuaState(const CLuaState &/* other */) { nlassert(0); }
|
|
| 358 |
CLuaState &operator=(const CLuaState &/* other */) { nlassert(0); return *this; }
|
|
| 357 |
CLuaState(const CLuaState &/* other */);
|
|
| 358 |
CLuaState &operator=(const CLuaState &/* other */);
|
|
| 359 | 359 |
|
| 360 | 360 |
void executeScriptInternal(const std::string &code, const std::string &dbgSrc, int numRet = 0); |
| 361 | 361 |
|
| b/code/ryzom/client/src/interface_v3/obs_huge_list.h Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 158 | 158 |
SlotType(NULL), |
| 159 | 159 |
Quality(NULL), |
| 160 | 160 |
SheetIDOrSkill(NULL), |
| 161 |
Price(NULL), |
|
| 162 | 161 |
LogicTextID(NULL), |
| 163 | 162 |
DescTextID(NULL), |
| 163 |
Price(NULL), |
|
| 164 |
MissionText(NULL), |
|
| 164 | 165 |
MissionDetailText(NULL), |
| 165 |
MissionText(NULL), |
|
| 166 | 166 |
MissionIcon(NULL), |
| 167 | 167 |
MissionPreReqState(NULL), |
| 168 | 168 |
Weight(NULL), |
| b/code/ryzom/client/src/interface_v3/people_list.h Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 136 | 136 |
private: |
| 137 | 137 |
struct CPeople |
| 138 | 138 |
{
|
| 139 |
CPeople() : Online(ccs_offline), Blocked(false), Container(NULL), Chat(NULL), ContactId(0) {}
|
|
| 139 |
CPeople() : Container(NULL), Chat(NULL), Online(ccs_offline), Blocked(false), ContactId(0) {}
|
|
| 140 | 140 |
NLMISC::CRefPtr<CGroupContainer> Container; // todo : replace this with a CChatWindow one day, for consistency |
| 141 | 141 |
NLMISC::CRefPtr<CGroupContainer> Chat; |
| 142 | 142 |
uint GlobalID; |
| b/code/ryzom/client/src/libwww.cpp Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 55 | 55 |
// Here, modify the DTD table to change the HTML parser (add new tags for examples) |
| 56 | 56 |
|
| 57 | 57 |
#undef HTML_ATTR |
| 58 |
#define HTML_ATTR(a,b) { #b }
|
|
| 58 |
#define HTML_ATTR(a,b) { (char*) #b }
|
|
| 59 | 59 |
|
| 60 | 60 |
HTAttr a_attr[] = |
| 61 | 61 |
{
|
| ... | ... | |
| 551 | 551 |
// HTCacheInit(NULL, 20); |
| 552 | 552 |
|
| 553 | 553 |
/* Setup up transfer coders */ |
| 554 |
HTFormat_addTransferCoding("chunked", HTChunkedEncoder, HTChunkedDecoder, 1.0);
|
|
| 554 |
HTFormat_addTransferCoding((char*)"chunked", HTChunkedEncoder, HTChunkedDecoder, 1.0);
|
|
| 555 | 555 |
|
| 556 | 556 |
/* Setup MIME stream converters */ |
| 557 | 557 |
HTFormat_addConversion("message/rfc822", "*/*", HTMIMEConvert, 1.0, 0.0, 0.0);
|
| ... | ... | |
| 630 | 630 |
{"authentication-info", &HTMIME_authenticationInfo},
|
| 631 | 631 |
{"proxy-authentication-info", &HTMIME_proxyAuthenticationInfo}
|
| 632 | 632 |
}; |
| 633 |
int i; |
|
| 634 |
for (i = 0; i < sizeof(fixedHandlers)/sizeof(fixedHandlers[0]); i++) |
|
| 633 |
|
|
| 634 |
for (uint i = 0; i < sizeof(fixedHandlers)/sizeof(fixedHandlers[0]); i++)
|
|
| 635 | 635 |
HTHeader_addParser(fixedHandlers[i].string, NO, fixedHandlers[i].pHandler); |
| 636 | 636 |
|
| 637 | 637 |
/* Set up default event loop */ |
| b/code/ryzom/client/src/login_patch.h Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 64 | 64 |
public: |
| 65 | 65 |
CInstallThreadEntry(){ Timestamp = 0; }
|
| 66 | 66 |
CInstallThreadEntry(const char* patchName, const char* sourceName, uint32 timestamp, const char* extractPath, uint32 size, uint32 sZipFileSize) |
| 67 |
:PatchName(patchName), SourceName(sourceName), Timestamp(timestamp),ExtractPath(extractPath), Size(size),SZipFileSize(sZipFileSize){}
|
|
| 67 |
:PatchName(patchName), SourceName(sourceName), Timestamp(timestamp),Size(size),SZipFileSize(sZipFileSize),ExtractPath(extractPath) {}
|
|
| 68 | 68 |
std::string PatchName; |
| 69 | 69 |
std::string SourceName; |
| 70 | 70 |
uint32 Timestamp; |
| b/code/ryzom/client/src/login_progress_post_thread.cpp Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 192 | 192 |
} |
| 193 | 193 |
if (newStep) |
| 194 | 194 |
{
|
| 195 |
if (loginStep.Step == LoginStep_Stop) |
|
| 195 |
if (loginStep.Step == (uint)LoginStep_Stop)
|
|
| 196 | 196 |
{
|
| 197 | 197 |
break; |
| 198 | 198 |
} |
| b/code/ryzom/client/src/main_loop.cpp Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 2568 | 2568 |
screenShotPNG(); |
| 2569 | 2569 |
ScreenshotRequest = ScreenshotRequestNone; |
| 2570 | 2570 |
break; |
| 2571 |
case ScreenshotRequestNone: |
|
| 2572 |
break; |
|
| 2571 | 2573 |
} |
| 2572 | 2574 |
|
| 2573 | 2575 |
// TMP TMP |
| b/code/ryzom/client/src/precipitation.cpp Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 35 | 35 |
|
| 36 | 36 |
|
| 37 | 37 |
//============================================================ |
| 38 |
CPrecipitation::CPrecipitation() : _Strenght(0), _XSize(0), _YSize(0), _ClipGrid(NULL), _Touched(false), _OldX(0), _OldY(0), _TimeOut(0.f)
|
|
| 38 |
CPrecipitation::CPrecipitation() : _ClipGrid(NULL), _Strenght(0), _TimeOut(0.f), _XSize(0), _YSize(0), _OldX(0), _OldY(0), _Touched(false)
|
|
| 39 | 39 |
{
|
| 40 | 40 |
H_AUTO_USE(RZ_Precipitation) |
| 41 | 41 |
} |
| b/code/ryzom/client/src/property_decoder.h Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 53 | 53 |
class CEntityEntry |
| 54 | 54 |
{
|
| 55 | 55 |
public: |
| 56 |
CEntityEntry() : EntryUsed(false), PosIsRelative(false), AssociationBits(0) {}
|
|
| 56 |
CEntityEntry() : AssociationBits(0), EntryUsed(false), PosIsRelative(false) {}
|
|
| 57 | 57 |
CLFECOMMON::TSheetId Sheet; |
| 58 | 58 |
uint16 AssociationBits; |
| 59 | 59 |
bool EntryUsed; |
| ... | ... | |
| 87 | 87 |
uint16& associationBits( CLFECOMMON::TCLEntityId entity ) { return _Entities[entity].AssociationBits; }
|
| 88 | 88 |
|
| 89 | 89 |
bool isUsed(CLFECOMMON::TCLEntityId entity) const { return _Entities[entity].EntryUsed; }
|
| 90 |
const CLFECOMMON::TSheetId sheet(CLFECOMMON::TCLEntityId entity) const { return _Entities[entity].Sheet; }
|
|
| 90 |
CLFECOMMON::TSheetId sheet(CLFECOMMON::TCLEntityId entity) const { return _Entities[entity].Sheet; }
|
|
| 91 | 91 |
|
| 92 | 92 |
|
| 93 | 93 |
/** Receives actions from the front end. Actually transmits actions received |
| b/code/ryzom/client/src/r2/instance.h Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 241 | 241 |
// For editor : Create this object from the CObjectTable it materialize in the editor |
| 242 | 242 |
CInstance(const CObjectTable *objectTable, CLuaState &ls); |
| 243 | 243 |
// copy not supported |
| 244 |
CInstance(const CInstance &/* other */) { nlassert(0); }
|
|
| 245 |
CInstance &operator = (const CInstance &/* other */) { nlassert(0); return *this; }
|
|
| 244 |
CInstance(const CInstance &/* other */);
|
|
| 245 |
CInstance &operator = (const CInstance &/* other */);
|
|
| 246 | 246 |
// |
| 247 | 247 |
void executeHandler(const CLuaString &name, int numArgs); |
| 248 | 248 |
// |
| b/code/ryzom/client/src/release.cpp Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 219 | 219 |
|
| 220 | 220 |
// Remove all entities. |
| 221 | 221 |
if (Driver) |
| 222 |
{
|
|
| 222 | 223 |
nldebug("RCSR1: %u textures", Driver->getTotalAsyncTextureSizeAsked());
|
| 224 |
} |
|
| 223 | 225 |
EntitiesMngr.release(); |
| 224 | 226 |
if (Driver) |
| 227 |
{
|
|
| 225 | 228 |
nldebug("RCSR2: %u textures", Driver->getTotalAsyncTextureSizeAsked());
|
| 229 |
} |
|
| 226 | 230 |
|
| 227 | 231 |
// Reset Fx manager (must be done after EntitiesMngr.release()) Important because may still point to 3D elements |
| 228 | 232 |
FXMngr.reset(); |
| ... | ... | |
| 265 | 269 |
// Release the Entities Animation Manager (Yoyo: fuckingly important because keep a pointer |
| 266 | 270 |
// on a _PlayListManager that is created from Scene) |
| 267 | 271 |
if (Driver) |
| 272 |
{
|
|
| 268 | 273 |
nldebug("RCSR3: %u textures", Driver->getTotalAsyncTextureSizeAsked());
|
| 274 |
} |
|
| 269 | 275 |
CEntityAnimationManager::delInstance(); |
| 270 | 276 |
EAM= NULL; |
| 271 | 277 |
if (Driver) |
| 278 |
{
|
|
| 272 | 279 |
nldebug("RCSR4: %u textures", Driver->getTotalAsyncTextureSizeAsked());
|
| 280 |
} |
|
| 273 | 281 |
|
| 274 | 282 |
// Not necessary I think because owns only static data (string + function ptrs) |
| 275 | 283 |
// --releaseContextualCursor(); |
| b/code/ryzom/client/src/rosace.cpp Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 242 | 242 |
case DirectMode: |
| 243 | 243 |
directMode(x, y); |
| 244 | 244 |
break; |
| 245 |
case NbRosaceMode: |
|
| 246 |
nlwarning("Rosace Mode reached.");
|
|
| 247 |
break; |
|
| 245 | 248 |
} |
| 246 | 249 |
}// update // |
| 247 | 250 |
|
| b/code/ryzom/client/src/string_manager_client.cpp Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 787 | 787 |
move = dynInfo.String.begin()+param.ReplacementPoint+2; |
| 788 | 788 |
} |
| 789 | 789 |
break; |
| 790 |
default: |
|
| 791 |
nlwarning("Unknown parameter type.");
|
|
| 792 |
break; |
|
| 790 | 793 |
} |
| 791 | 794 |
} |
| 792 | 795 |
// append the rest of the string |
| ... | ... | |
| 1245 | 1248 |
while(strFindReplace(_SpecItem_TempMap[keyStr].Name, "\\n", "\n")); |
| 1246 | 1249 |
|
| 1247 | 1250 |
// insert in map of Women Name if OK. |
| 1248 |
if(womenNameColIndex!=(~0)) |
|
| 1251 |
if(womenNameColIndex!=((uint)~0))
|
|
| 1249 | 1252 |
{
|
| 1250 | 1253 |
const ucstring &womenName= ws.getData(j, womenNameColIndex); |
| 1251 | 1254 |
_SpecItem_TempMap[keyStr].WomenName= womenName; |
| ... | ... | |
| 1254 | 1257 |
} |
| 1255 | 1258 |
|
| 1256 | 1259 |
// insert in map of Description if OK. |
| 1257 |
if(descColIndex!=(~0)) |
|
| 1260 |
if(descColIndex!=((uint)~0))
|
|
| 1258 | 1261 |
{
|
| 1259 | 1262 |
const ucstring &desc= ws.getData(j, descColIndex); |
| 1260 | 1263 |
_SpecItem_TempMap[keyStr].Desc= desc; |
| ... | ... | |
| 1263 | 1266 |
} |
| 1264 | 1267 |
|
| 1265 | 1268 |
// insert in map of Description2 if OK. |
| 1266 |
if(descColIndex2!=(~0)) |
|
| 1269 |
if(descColIndex2!=((uint)~0))
|
|
| 1267 | 1270 |
{
|
| 1268 | 1271 |
const ucstring &desc= ws.getData(j, descColIndex2); |
| 1269 | 1272 |
_SpecItem_TempMap[keyStr].Desc2= desc; |
| b/code/ryzom/client/src/timed_fx_manager.h Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 49 | 49 |
bool FromIG; // true if the fx comes from an ig, or false if it was generated dynamically |
| 50 | 50 |
#endif |
| 51 | 51 |
public: |
| 52 |
CTimedFX() : FXSheet(NULL), SpawnPosition(0.f, 0.f, 0.f)
|
|
| 52 |
CTimedFX() : SpawnPosition(0.f, 0.f, 0.f), FXSheet(NULL)
|
|
| 53 | 53 |
{
|
| 54 | 54 |
#if !FINAL_VERSION |
| 55 | 55 |
FromIG = true; |
| b/code/ryzom/client/src/user_entity.cpp Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 744 | 744 |
return true; |
| 745 | 745 |
} |
| 746 | 746 |
break; |
| 747 |
default: |
|
| 748 |
nlwarning("Invalid behaviour change.");
|
|
| 747 | 749 |
} |
| 748 | 750 |
|
| 749 | 751 |
// Reset Parent, unless we stay in mount mode |
| ... | ... | |
| 1323 | 1325 |
if(_MoveToAction==CUserEntity::CombatPhrase || _MoveToAction==CUserEntity::ExtractRM) |
| 1324 | 1326 |
{
|
| 1325 | 1327 |
// the clientExecute has not been called in case of "ExtractRM autoFind" |
| 1326 |
bool autoFindExtractRM= _MoveToAction==CUserEntity::ExtractRM && _MoveToPhraseMemoryLine == ~0; |
|
| 1328 |
bool autoFindExtractRM= _MoveToAction==CUserEntity::ExtractRM && _MoveToPhraseMemoryLine == (uint)~0;
|
|
| 1327 | 1329 |
if(!autoFindExtractRM) |
| 1328 | 1330 |
{
|
| 1329 | 1331 |
CSPhraseManager *pPM= CSPhraseManager::getInstance(); |
| ... | ... | |
| 1643 | 1645 |
case CUserEntity::BuildTotem: |
| 1644 | 1646 |
buildTotem(); |
| 1645 | 1647 |
break; |
| 1648 |
// Move To Done. |
|
| 1649 |
default: |
|
| 1650 |
resetAnyMoveTo(); |
|
| 1651 |
break; |
|
| 1646 | 1652 |
} |
| 1647 |
// Move To Done. |
|
| 1648 |
resetAnyMoveTo(); |
|
| 1649 | 1653 |
}// moveToAction // |
| 1650 | 1654 |
|
| 1651 | 1655 |
|
| ... | ... | |
| 3518 | 3522 |
if ( ((CLFECOMMON::TClientDataSetIndex)uidLeaf->getValue32()) == mountEntity->dataSetId() ) |
| 3519 | 3523 |
{
|
| 3520 | 3524 |
CCDBNodeLeaf *hungerLeaf = safe_cast<CCDBNodeLeaf*>(beastNode->getNode( ICDBNode::CTextId( "HUNGER" ) )); |
| 3521 |
return (hungerLeaf->getValue32() != ANIMAL_TYPE::DbHungryValue); |
|
| 3525 |
return (hungerLeaf->getValue32() != (sint)ANIMAL_TYPE::DbHungryValue);
|
|
| 3522 | 3526 |
} |
| 3523 | 3527 |
} |
| 3524 | 3528 |
return false; |
| ... | ... | |
| 3750 | 3754 |
CSPhraseManager *pm = CSPhraseManager::getInstance(); |
| 3751 | 3755 |
uint index; |
| 3752 | 3756 |
uint memoryLine; |
| 3753 |
bool autoFindPhrase = (_MoveToPhraseMemoryLine == ~0); |
|
| 3757 |
bool autoFindPhrase = (_MoveToPhraseMemoryLine == (uint)~0);
|
|
| 3754 | 3758 |
if ( ! autoFindPhrase ) |
| 3755 | 3759 |
{
|
| 3756 | 3760 |
// Use clicked phrase |
| ... | ... | |
| 3780 | 3784 |
} |
| 3781 | 3785 |
} |
| 3782 | 3786 |
|
| 3783 |
if ( memoryLine != ~0 ) |
|
| 3787 |
if ( memoryLine != (uint)~0 )
|
|
| 3784 | 3788 |
{
|
| 3785 | 3789 |
// Open the forage (but not for care actions). Necessary for the case of redoing an extraction after a Drop All on the same source. |
| 3786 | 3790 |
uint32 phraseId = pm->getMemorizedPhrase( memoryLine, index ); |
| b/code/ryzom/client/src/water_env_map_rdr.h Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 47 | 47 |
NL3D::TGlobalAnimationTime CurrTime; |
| 48 | 48 |
CSky *Sky; |
| 49 | 49 |
public: |
| 50 |
CWaterEnvMapRdr() : _LastRenderStartTime(-1), CurrTime(-1)
|
|
| 50 |
CWaterEnvMapRdr() : CurrTime(-1), _LastRenderStartTime(-1)
|
|
| 51 | 51 |
{
|
| 52 | 52 |
_CurrCanopyCamPos = CVector::Null; |
| 53 | 53 |
} |
| b/code/ryzom/common/src/game_share/bg_downloader_msg.cpp Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 24 | 24 |
namespace BGDownloader |
| 25 | 25 |
{
|
| 26 | 26 |
|
| 27 |
extern const char *DownloaderMutexName = "RyzomBgDownloader";
|
|
| 27 |
const char *DownloaderMutexName = "RyzomBgDownloader"; |
|
| 28 | 28 |
|
| 29 | 29 |
ucstring getWrittenSize(uint32 nSize) |
| 30 | 30 |
{
|
| b/code/ryzom/common/src/game_share/bnp_patch.cpp Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 190 | 190 |
PROP(uint32,_PatchSize) \ |
| 191 | 191 |
PROP_VECT(uint32,_HashKey) |
| 192 | 192 |
|
| 193 |
#pragma message( PERSISTENT_GENERATION_MESSAGE ) |
|
| 193 |
#ifdef NL_PRAGMA_MESSAGE |
|
| 194 |
# pragma message( PERSISTENT_GENERATION_MESSAGE ) |
|
| 195 |
#endif // NL_PRAGMA_MESSAGE |
|
| 194 | 196 |
#include "persistent_data_template.h" |
| 195 | 197 |
|
| 196 | 198 |
#undef PERSISTENT_CLASS |
| ... | ... | |
| 340 | 342 |
PROP(std::string,_FileName)\ |
| 341 | 343 |
STRUCT_VECT(_Versions) |
| 342 | 344 |
|
| 343 |
#pragma message( PERSISTENT_GENERATION_MESSAGE ) |
|
| 345 |
#ifdef NL_PRAGMA_MESSAGE |
|
| 346 |
# pragma message( PERSISTENT_GENERATION_MESSAGE ) |
|
| 347 |
#endif // NL_PRAGMA_MESSAGE |
|
| 344 | 348 |
#include "persistent_data_template.h" |
| 345 | 349 |
|
| 346 | 350 |
#undef PERSISTENT_CLASS |
| ... | ... | |
| 453 | 457 |
#define PERSISTENT_CLASS CBNPFileSet |
| 454 | 458 |
#define PERSISTENT_DATA\ |
| 455 | 459 |
STRUCT_VECT(_Files) |
| 456 |
|
|
| 457 |
#pragma message( PERSISTENT_GENERATION_MESSAGE ) |
|
| 460 |
#ifdef NL_PRAGMA_MESSAGE |
|
| 461 |
# pragma message( PERSISTENT_GENERATION_MESSAGE ) |
|
| 462 |
#endif // NL_PRAGMA_MESSAGE |
|
| 458 | 463 |
#include "persistent_data_template.h" |
| 459 | 464 |
|
| 460 | 465 |
#undef PERSISTENT_CLASS |
| ... | ... | |
| 574 | 579 |
LPROP(bool, _Hidden, if(_Hidden))\ |
| 575 | 580 |
PROP_VECT(std::string, _Files)\ |
| 576 | 581 |
|
| 577 |
#pragma message( PERSISTENT_GENERATION_MESSAGE ) |
|
| 582 |
#ifdef NL_PRAGMA_MESSAGE |
|
| 583 |
# pragma message( PERSISTENT_GENERATION_MESSAGE ) |
|
| 584 |
#endif // NL_PRAGMA_MESSAGE |
|
| 578 | 585 |
#include "persistent_data_template.h" |
| 579 | 586 |
|
| 580 | 587 |
#undef PERSISTENT_CLASS |
| ... | ... | |
| 724 | 731 |
#define PERSISTENT_CLASS CBNPCategorySet |
| 725 | 732 |
#define PERSISTENT_DATA\ |
| 726 | 733 |
STRUCT_VECT(_Category) |
| 727 |
|
|
| 728 |
#pragma message( PERSISTENT_GENERATION_MESSAGE ) |
|
| 734 |
#ifdef NL_PRAGMA_MESSAGE |
|
| 735 |
# pragma message( PERSISTENT_GENERATION_MESSAGE ) |
|
| 736 |
#endif |
|
| 729 | 737 |
#include "persistent_data_template.h" |
| 730 | 738 |
|
| 731 | 739 |
#undef PERSISTENT_CLASS |
| ... | ... | |
| 814 | 822 |
STRUCT(_Files)\ |
| 815 | 823 |
STRUCT(_Categories) |
| 816 | 824 |
|
| 817 |
#pragma message( PERSISTENT_GENERATION_MESSAGE ) |
|
| 825 |
#ifdef NL_PRAGMA_MESSAGE |
|
| 826 |
# pragma message( PERSISTENT_GENERATION_MESSAGE ) |
|
| 827 |
#endif |
|
| 818 | 828 |
#include "persistent_data_template.h" |
| 819 | 829 |
|
| 820 | 830 |
#undef PERSISTENT_CLASS |
| b/code/ryzom/common/src/game_share/crypt.cpp Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 403 | 403 |
|
| 404 | 404 |
static unsigned char S[8][64] = { /* 48->32 bit substitution tables */
|
| 405 | 405 |
/* S[1] */ |
| 406 |
14, 4, 13, 1, 2, 15, 11, 8, 3, 10, 6, 12, 5, 9, 0, 7, |
|
| 407 |
0, 15, 7, 4, 14, 2, 13, 1, 10, 6, 12, 11, 9, 5, 3, 8, |
|
| 408 |
4, 1, 14, 8, 13, 6, 2, 11, 15, 12, 9, 7, 3, 10, 5, 0, |
|
| 409 |
15, 12, 8, 2, 4, 9, 1, 7, 5, 11, 3, 14, 10, 0, 6, 13,
|
|
| 406 |
{14, 4, 13, 1, 2, 15, 11, 8, 3, 10, 6, 12, 5, 9, 0, 7,
|
|
| 407 |
0, 15, 7, 4, 14, 2, 13, 1, 10, 6, 12, 11, 9, 5, 3, 8,
|
|
| 408 |
4, 1, 14, 8, 13, 6, 2, 11, 15, 12, 9, 7, 3, 10, 5, 0,
|
|
| 409 |
15, 12, 8, 2, 4, 9, 1, 7, 5, 11, 3, 14, 10, 0, 6, 13},
|
|
| 410 | 410 |
/* S[2] */ |
| 411 |
15, 1, 8, 14, 6, 11, 3, 4, 9, 7, 2, 13, 12, 0, 5, 10, |
|
| 412 |
3, 13, 4, 7, 15, 2, 8, 14, 12, 0, 1, 10, 6, 9, 11, 5, |
|
| 413 |
0, 14, 7, 11, 10, 4, 13, 1, 5, 8, 12, 6, 9, 3, 2, 15, |
|
| 414 |
13, 8, 10, 1, 3, 15, 4, 2, 11, 6, 7, 12, 0, 5, 14, 9,
|
|
| 411 |
{15, 1, 8, 14, 6, 11, 3, 4, 9, 7, 2, 13, 12, 0, 5, 10,
|
|
| 412 |
3, 13, 4, 7, 15, 2, 8, 14, 12, 0, 1, 10, 6, 9, 11, 5,
|
|
| 413 |
0, 14, 7, 11, 10, 4, 13, 1, 5, 8, 12, 6, 9, 3, 2, 15,
|
|
| 414 |
13, 8, 10, 1, 3, 15, 4, 2, 11, 6, 7, 12, 0, 5, 14, 9},
|
|
| 415 | 415 |
/* S[3] */ |
| 416 |
10, 0, 9, 14, 6, 3, 15, 5, 1, 13, 12, 7, 11, 4, 2, 8, |
|
| 417 |
13, 7, 0, 9, 3, 4, 6, 10, 2, 8, 5, 14, 12, 11, 15, 1, |
|
| 418 |
13, 6, 4, 9, 8, 15, 3, 0, 11, 1, 2, 12, 5, 10, 14, 7, |
|
| 419 |
1, 10, 13, 0, 6, 9, 8, 7, 4, 15, 14, 3, 11, 5, 2, 12,
|
|
| 416 |
{10, 0, 9, 14, 6, 3, 15, 5, 1, 13, 12, 7, 11, 4, 2, 8,
|
|
| 417 |
13, 7, 0, 9, 3, 4, 6, 10, 2, 8, 5, 14, 12, 11, 15, 1,
|
|
| 418 |
13, 6, 4, 9, 8, 15, 3, 0, 11, 1, 2, 12, 5, 10, 14, 7,
|
|
| 419 |
1, 10, 13, 0, 6, 9, 8, 7, 4, 15, 14, 3, 11, 5, 2, 12},
|
|
| 420 | 420 |
/* S[4] */ |
| 421 |
7, 13, 14, 3, 0, 6, 9, 10, 1, 2, 8, 5, 11, 12, 4, 15, |
|
| 422 |
13, 8, 11, 5, 6, 15, 0, 3, 4, 7, 2, 12, 1, 10, 14, 9, |
|
| 423 |
10, 6, 9, 0, 12, 11, 7, 13, 15, 1, 3, 14, 5, 2, 8, 4, |
|
| 424 |
3, 15, 0, 6, 10, 1, 13, 8, 9, 4, 5, 11, 12, 7, 2, 14,
|
|
| 421 |
{ 7, 13, 14, 3, 0, 6, 9, 10, 1, 2, 8, 5, 11, 12, 4, 15,
|
|
| 422 |
13, 8, 11, 5, 6, 15, 0, 3, 4, 7, 2, 12, 1, 10, 14, 9,
|
|
| 423 |
10, 6, 9, 0, 12, 11, 7, 13, 15, 1, 3, 14, 5, 2, 8, 4,
|
|
| 424 |
3, 15, 0, 6, 10, 1, 13, 8, 9, 4, 5, 11, 12, 7, 2, 14},
|
|
| 425 | 425 |
/* S[5] */ |
| 426 |
2, 12, 4, 1, 7, 10, 11, 6, 8, 5, 3, 15, 13, 0, 14, 9, |
|
| 427 |
14, 11, 2, 12, 4, 7, 13, 1, 5, 0, 15, 10, 3, 9, 8, 6, |
|
| 428 |
4, 2, 1, 11, 10, 13, 7, 8, 15, 9, 12, 5, 6, 3, 0, 14, |
|
| 429 |
11, 8, 12, 7, 1, 14, 2, 13, 6, 15, 0, 9, 10, 4, 5, 3,
|
|
| 426 |
{ 2, 12, 4, 1, 7, 10, 11, 6, 8, 5, 3, 15, 13, 0, 14, 9,
|
|
| 427 |
14, 11, 2, 12, 4, 7, 13, 1, 5, 0, 15, 10, 3, 9, 8, 6,
|
|
| 428 |
4, 2, 1, 11, 10, 13, 7, 8, 15, 9, 12, 5, 6, 3, 0, 14,
|
|
| 429 |
11, 8, 12, 7, 1, 14, 2, 13, 6, 15, 0, 9, 10, 4, 5, 3},
|
|
| 430 | 430 |
/* S[6] */ |
| 431 |
12, 1, 10, 15, 9, 2, 6, 8, 0, 13, 3, 4, 14, 7, 5, 11, |
|
| 432 |
10, 15, 4, 2, 7, 12, 9, 5, 6, 1, 13, 14, 0, 11, 3, 8, |
|
| 433 |
9, 14, 15, 5, 2, 8, 12, 3, 7, 0, 4, 10, 1, 13, 11, 6, |
|
| 434 |
4, 3, 2, 12, 9, 5, 15, 10, 11, 14, 1, 7, 6, 0, 8, 13,
|
|
| 431 |
{12, 1, 10, 15, 9, 2, 6, 8, 0, 13, 3, 4, 14, 7, 5, 11,
|
|
| 432 |
10, 15, 4, 2, 7, 12, 9, 5, 6, 1, 13, 14, 0, 11, 3, 8,
|
|
| 433 |
9, 14, 15, 5, 2, 8, 12, 3, 7, 0, 4, 10, 1, 13, 11, 6,
|
|
| 434 |
4, 3, 2, 12, 9, 5, 15, 10, 11, 14, 1, 7, 6, 0, 8, 13},
|
|
| 435 | 435 |
/* S[7] */ |
| 436 |
4, 11, 2, 14, 15, 0, 8, 13, 3, 12, 9, 7, 5, 10, 6, 1, |
|
| 437 |
13, 0, 11, 7, 4, 9, 1, 10, 14, 3, 5, 12, 2, 15, 8, 6,
|
|
| 438 |
1, 4, 11, 13, 12, 3, 7, 14, 10, 15, 6, 8, 0, 5, 9, 2, |
|
| 439 |
6, 11, 13, 8, 1, 4, 10, 7, 9, 5, 0, 15, 14, 2, 3, 12,
|
|
| 436 |
{ 4, 11, 2, 14, 15, 0, 8, 13, 3, 12, 9, 7, 5, 10, 6, 1,
|
|
| 437 |
13, 0, 11, 7, 4, 9, 1, 10, 14, 3, 5, 12, 2, 15, 8, 6,
|
|
| 438 |
1, 4, 11, 13, 12, 3, 7, 14, 10, 15, 6, 8, 0, 5, 9, 2,
|
|
| 439 |
6, 11, 13, 8, 1, 4, 10, 7, 9, 5, 0, 15, 14, 2, 3, 12},
|
|
| 440 | 440 |
/* S[8] */ |
| 441 |
13, 2, 8, 4, 6, 15, 11, 1, 10, 9, 3, 14, 5, 0, 12, 7, |
|
| 442 |
1, 15, 13, 8, 10, 3, 7, 4, 12, 5, 6, 11, 0, 14, 9, 2, |
|
| 443 |
7, 11, 4, 1, 9, 12, 14, 2, 0, 6, 10, 13, 15, 3, 5, 8, |
|
| 444 |
2, 1, 14, 7, 4, 10, 8, 13, 15, 12, 9, 0, 3, 5, 6, 11,
|
|
| 441 |
{13, 2, 8, 4, 6, 15, 11, 1, 10, 9, 3, 14, 5, 0, 12, 7,
|
|
| 442 |
1, 15, 13, 8, 10, 3, 7, 4, 12, 5, 6, 11, 0, 14, 9, 2,
|
|
| 443 |
7, 11, 4, 1, 9, 12, 14, 2, 0, 6, 10, 13, 15, 3, 5, 8,
|
|
| 444 |
2, 1, 14, 7, 4, 10, 8, 13, 15, 12, 9, 0, 3, 5, 6, 11}
|
|
| 445 | 445 |
}; |
| 446 | 446 |
|
| 447 | 447 |
static unsigned char P32Tr[] = { /* 32-bit permutation function */
|
| b/code/ryzom/common/src/game_share/dir_light_setup.cpp Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 26 | 26 |
|
| 27 | 27 |
//----------------------------------------------- |
| 28 | 28 |
CDirLightSetup::CDirLightSetup() : Ambiant(0, 0, 0), |
| 29 |
Diffuse(255, 255, 255), |
|
| 29 | 30 |
Specular(0, 0, 0), |
| 30 |
Diffuse(255, 255, 255), |
|
| 31 | 31 |
Direction(1.f, 0.f, 0.f) |
| 32 | 32 |
{
|
| 33 |
// |
|
| 34 | 33 |
} |
| 35 | 34 |
|
| 36 | 35 |
//----------------------------------------------- |
| b/code/ryzom/common/src/game_share/dms.h Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 80 | 80 |
public: |
| 81 | 81 |
virtual ~IServerEditionModule(){}
|
| 82 | 82 |
virtual void createSessionWithoutSu(uint32 charId, NLMISC::CEntityId clientEid) = 0; |
| 83 |
virtual TPioneersSessionsAllowed * const getSessionAllowedForChar(TCharId charId) const = 0;
|
|
| 83 |
virtual TPioneersSessionsAllowed * getSessionAllowedForChar(TCharId charId) const = 0; |
|
| 84 | 84 |
virtual CScenario* getScenarioById(TSessionId sessionId) const = 0; |
| 85 | 85 |
// getEditing position (use AdminModule::getPosition for having a position in editing and animation mode) |
| 86 | 86 |
virtual bool getPosition(TSessionId sessionId, double& x, double& y, double& orient, uint8& season, uint32 locationIndex = 0) = 0; |
| b/code/ryzom/common/src/game_share/dyn_chat.cpp Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 29 | 29 |
///////////////////// |
| 30 | 30 |
//================================================================ |
| 31 | 31 |
CDynChatSession::CDynChatSession(CDynChatClient *client, CDynChatChan *channel) |
| 32 |
: _Client(client),
|
|
| 33 |
_Channel(channel),
|
|
| 34 |
StringID(0),
|
|
| 35 |
WriteRight(false)
|
|
| 32 |
: StringID(0),
|
|
| 33 |
WriteRight(false),
|
|
| 34 |
_Client(client),
|
|
| 35 |
_Channel(channel)
|
|
| 36 | 36 |
{
|
| 37 | 37 |
nlassert(client); |
| 38 | 38 |
nlassert(channel); |
| ... | ... | |
| 102 | 102 |
// CDynChatClient // |
| 103 | 103 |
//////////////////// |
| 104 | 104 |
//================================================================ |
| 105 |
CDynChatClient::CDynChatClient(const TDataSetRow &client) : _ID(client), _FirstSession(NULL)
|
|
| 105 |
CDynChatClient::CDynChatClient(const TDataSetRow &client) : _FirstSession(NULL), _ID(client)
|
|
| 106 | 106 |
{
|
| 107 | 107 |
} |
| 108 | 108 |
|
| ... | ... | |
| 136 | 136 |
// CDynChatChan // |
| 137 | 137 |
////////////////// |
| 138 | 138 |
CDynChatChan::CDynChatChan() |
| 139 |
: _ID(CEntityId::Unknown), |
|
| 139 |
: HistoricSize(0), |
|
| 140 |
HideBubble(false), |
|
| 140 | 141 |
_FirstSession(NULL), |
| 141 |
HistoricSize(0),
|
|
| 142 |
_ID(CEntityId::Unknown),
|
|
| 142 | 143 |
_DontBroadcastPlayerInputs(false), |
| 143 | 144 |
_ForwardPlayerIntputToOwnerService(false), |
| 144 |
_UnifyChannel(false), |
|
| 145 |
HideBubble(false) |
|
| 145 |
_UnifyChannel(false) |
|
| 146 | 146 |
{
|
| 147 | 147 |
} |
| 148 | 148 |
|
| 149 | 149 |
//================================================================ |
| 150 | 150 |
//CDynChatChan::CDynChatChan(TChanID id) : _ID(id), _FirstSession(NULL), HistoricSize(0) |
| 151 | 151 |
CDynChatChan::CDynChatChan(TChanID id, bool noBroadcast, bool forwardInput, bool unified) |
| 152 |
: _ID(id), |
|
| 152 |
: HistoricSize(0), |
|
| 153 |
HideBubble(false), |
|
| 153 | 154 |
_FirstSession(NULL), |
| 154 |
HistoricSize(0),
|
|
| 155 |
_ID(id),
|
|
| 155 | 156 |
_DontBroadcastPlayerInputs(noBroadcast), |
| 156 | 157 |
_ForwardPlayerIntputToOwnerService(forwardInput), |
| 157 |
_UnifyChannel(unified), |
|
| 158 |
HideBubble(false) |
|
| 158 |
_UnifyChannel(unified) |
|
| 159 | 159 |
{
|
| 160 | 160 |
} |
| 161 | 161 |
|
| b/code/ryzom/common/src/game_share/effect_families.cpp Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 214 | 214 |
case DMGTYPE::POISON : return DebuffResistPoison; |
| 215 | 215 |
case DMGTYPE::ELECTRICITY : return DebuffResistElectricity; |
| 216 | 216 |
case DMGTYPE::SHOCK : return DebuffResistSchock; |
| 217 |
default: return Unknown; |
|
| 217 | 218 |
} |
| 218 |
return Unknown; |
|
| 219 | 219 |
} |
| 220 | 220 |
|
| 221 | 221 |
TEffectFamily getCombatDoTEffect( DMGTYPE::EDamageType type) |
| ... | ... | |
| 229 | 229 |
case DMGTYPE::POISON : return CombatDoTPoison; |
| 230 | 230 |
case DMGTYPE::ELECTRICITY : return CombatDoTElectricity; |
| 231 | 231 |
case DMGTYPE::SHOCK : return CombatDoTShock; |
| 232 |
default: return Unknown; |
|
| 232 | 233 |
} |
| 233 |
return Unknown; |
|
| 234 | 234 |
} |
| 235 | 235 |
|
| 236 | 236 |
|
| b/code/ryzom/common/src/game_share/generic_xml_msg_mngr.cpp Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 177 | 177 |
/* |
| 178 | 178 |
* Constructor |
| 179 | 179 |
*/ |
| 180 |
CGenericXmlMsgHeaderManager::CNode::CNode(xmlNodePtr xmlNode, uint32 value) : Value(value), NbBits(0), Callback(NULL), UseCycle(false)
|
|
| 180 |
CGenericXmlMsgHeaderManager::CNode::CNode(xmlNodePtr xmlNode, uint32 value) : Value(value), UseCycle(false), NbBits(0), Callback(NULL)
|
|
| 181 | 181 |
{
|
| 182 | 182 |
UserData[0] = 0; |
| 183 | 183 |
UserData[1] = 0; |
| b/code/ryzom/common/src/game_share/mirror.cpp Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 30 | 30 |
using namespace NLNET; |
| 31 | 31 |
using namespace std; |
| 32 | 32 |
|
| 33 |
|
|
| 34 |
#ifdef FAST_MIRROR |
|
| 35 |
# pragma message(NL_LOC_MSG "Using **** FAST_MIRROR ****") |
|
| 36 |
#else |
|
| 37 |
# pragma message(NL_LOC_MSG "Not using FAST_MIRROR") |
|
| 33 |
#ifdef NL_PRAGMA_MESSAGE |
|
| 34 |
# ifdef FAST_MIRROR |
|
| 35 |
# pragma message(NL_LOC_MSG "Using **** FAST_MIRROR ****") |
|
| 36 |
# else |
|
| 37 |
# pragma message(NL_LOC_MSG "Not using FAST_MIRROR") |
|
| 38 |
# endif |
|
| 38 | 39 |
#endif |
| 39 | 40 |
|
| 40 | 41 |
|
| ... | ... | |
| 841 | 842 |
for ( istfar=smidsToFindAndRemove.begin(); istfar!=smidsToFindAndRemove.end(); ++istfar ) |
| 842 | 843 |
{
|
| 843 | 844 |
if ( (*istfar) != InvalidSMId ) |
| 845 |
{
|
|
| 844 | 846 |
MIRROR_INFO( "MIRROR: Need to remove tracker with smid %d", (*istfar) ); |
| 847 |
} |
|
| 845 | 848 |
} |
| 846 | 849 |
#endif |
| 847 | 850 |
|
| ... | ... | |
| 1485 | 1488 |
*/ |
| 1486 | 1489 |
CMirror::CMirror() : |
| 1487 | 1490 |
_PendingEntityTypesRanges(0), |
| 1488 |
_MirrorAllReady(false), |
|
| 1489 | 1491 |
_ReadyL1Callback(NULL), |
| 1490 | 1492 |
_NotificationCallback(NULL), |
| 1493 |
_UserSyncCallback(NULL), |
|
| 1494 |
_MirrorAllReady(false), |
|
| 1491 | 1495 |
_MirrorGotReadyLevel1(false), |
| 1492 | 1496 |
_MirrorGotReadyLevel2(false), |
| 1493 | 1497 |
_ListOfOtherPropertiesReceived(false), |
| 1494 | 1498 |
_AwaitingAllMirrorsOnline(false), |
| 1495 | 1499 |
_IsExecutingSynchronizedCode(false), |
| 1496 |
MonitoredEntity(CEntityId::Unknown), |
|
| 1497 | 1500 |
_ClosureRequested(false), |
| 1498 |
_UserSyncCallback(NULL)
|
|
| 1501 |
MonitoredEntity(CEntityId::Unknown)
|
|
| 1499 | 1502 |
{
|
| 1500 | 1503 |
nlassert( ! MirrorInstance ); // singleton check |
| 1501 | 1504 |
MirrorInstance = this; |
| b/code/ryzom/common/src/game_share/mirror_prop_value.h Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 1296 | 1296 |
protected: |
| 1297 | 1297 |
|
| 1298 | 1298 |
/// Default constructor |
| 1299 |
CMirrorPropValueList() : _PtFront(NULL), _Container(NULL), _PropLocation() {}
|
|
| 1299 |
CMirrorPropValueList() : _Container(NULL), _PtFront(NULL), _PropLocation() {}
|
|
| 1300 | 1300 |
|
| 1301 | 1301 |
TSharedListRow allocateNewCell(); |
| 1302 | 1302 |
|
| b/code/ryzom/common/src/game_share/mode_and_behaviour.h Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 318 | 318 |
} |
| 319 | 319 |
|
| 320 | 320 |
/// Cons cast into behaviour enum |
| 321 |
operator const EBehaviour () const
|
|
| 321 |
operator EBehaviour () const |
|
| 322 | 322 |
{
|
| 323 | 323 |
return (EBehaviour)Behaviour8; |
| 324 | 324 |
} |
| ... | ... | |
| 453 | 453 |
sint16 DeltaHP; |
| 454 | 454 |
uint16 Unused; /// Keep it, used to make the class size = 64 bits (sizeof(CBehaviour) MUST return 8 (bytes)) |
| 455 | 455 |
|
| 456 |
inline CBehaviour() : Behaviour(UNKNOWN_BEHAVIOUR), Data(0), Data2(0), DeltaHP(0), Unused(0) {}
|
|
| 456 |
inline CBehaviour() : Data(0), Data2(0), Behaviour(UNKNOWN_BEHAVIOUR), DeltaHP(0), Unused(0) {}
|
|
| 457 | 457 |
|
| 458 | 458 |
inline CBehaviour( EBehaviour behaviour ) |
| 459 | 459 |
{
|
| b/code/ryzom/common/src/game_share/rm_family.cpp Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 640 | 640 |
bool isMagicResistStat(TRMStatType fs) |
| 641 | 641 |
{
|
| 642 | 642 |
// should have 5 magic resistances. Desert should be the 1st, and PrimRoot the last |
| 643 |
const uint startMResist= DesertResistance;
|
|
| 644 |
const uint endMResist= PrimaryRootResistance+1;
|
|
| 643 |
const int startMResist= DesertResistance; |
|
| 644 |
const int endMResist= PrimaryRootResistance+1; |
|
| 645 | 645 |
nlctassert(endMResist - startMResist == 5); |
| 646 | 646 |
|
| 647 | 647 |
return fs>=startMResist && fs<endMResist; |
| ... | ... | |
| 651 | 651 |
bool isMagicProtectStat(TRMStatType fs) |
| 652 | 652 |
{
|
| 653 | 653 |
// should have 7 magic protection. Acid should be the 1st, and Electricity the last |
| 654 |
const uint startMProt= AcidProtection;
|
|
| 655 |
const uint endMProt= ElectricityProtection+1;
|
|
| 654 |
const int startMProt= AcidProtection; |
|
| 655 |
const int endMProt= ElectricityProtection+1; |
|
| 656 | 656 |
nlctassert(endMProt - startMProt == 7); |
| 657 | 657 |
|
| 658 | 658 |
return fs>=startMProt && fs<endMProt; |
| b/code/ryzom/common/src/game_share/season.cpp Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 23 | 23 |
|
| 24 | 24 |
static const struct { char* Name; CSeason::TSeason Value; } TSeasonConvert[] =
|
| 25 | 25 |
{
|
| 26 |
{ "Spring", CSeason::Spring },
|
|
| 27 |
{ "Summer", CSeason::Summer },
|
|
| 28 |
{ "Autumn", CSeason::Autumn },
|
|
| 29 |
{ "Winter", CSeason::Winter },
|
|
| 30 |
{ "Invalid", CSeason::Invalid },
|
|
| 26 |
{ (char*)"Spring", CSeason::Spring },
|
|
| 27 |
{ (char*)"Summer", CSeason::Summer },
|
|
| 28 |
{ (char*)"Autumn", CSeason::Autumn },
|
|
| 29 |
{ (char*)"Winter", CSeason::Winter },
|
|
| 30 |
{ (char*)"Invalid", CSeason::Invalid },
|
|
| 31 | 31 |
}; |
| 32 | 32 |
/* ----------------------------------------- |
| 33 | 33 |
* Static Implementation of CSeason |
| b/code/ryzom/common/src/game_share/server_edition_module.cpp Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 141 | 141 |
public: |
| 142 | 142 |
|
| 143 | 143 |
CCurrentChar(TCharId charId, uint32 editSlotId, const R2::TUserRole& userRole = R2::TUserRole::ur_editor) |
| 144 |
:_CharId(charId), _EditSlotId(editSlotId), _UserRole(userRole){}
|
|
| 144 |
:_EditSlotId(editSlotId), _CharId(charId), _UserRole(userRole){}
|
|
| 145 | 145 |
|
| 146 | 146 |
void setUserRole(const R2::TUserRole& userRole) |
| 147 | 147 |
{
|
| ... | ... | |
| 256 | 256 |
{
|
| 257 | 257 |
public: |
| 258 | 258 |
CTaskUpdateScenarioVision(NLMISC::TTime now, CServerEditionModule* module, TSessionId sessionId) |
| 259 |
:CTask<NLMISC::TTime>(now), _Module(module),_SessionId(sessionId){}
|
|
| 259 |
:CTask<NLMISC::TTime>(now), _SessionId(sessionId), _Module(module){}
|
|
| 260 | 260 |
virtual void doOperation() |
| 261 | 261 |
{
|
| 262 | 262 |
_Module->updateScenarioVision(_SessionId); |
| ... | ... | |
| 340 | 340 |
|
| 341 | 341 |
public: |
| 342 | 342 |
CKickPlayerIfStillConnected(NLMISC::TTime taskDate, CServerEditionModule* serverEditionModule, TSessionId sessionId, TCharId charId) |
| 343 |
: CTask<NLMISC::TTime>(taskDate),_ServerEditionModule(serverEditionModule), _SessionId(sessionId), _CharId(charId)
|
|
| 343 |
: CTask<NLMISC::TTime>(taskDate),_ServerEditionModule(serverEditionModule), _CharId(charId), _SessionId(sessionId)
|
|
| 344 | 344 |
{
|
| 345 | 345 |
} |
| 346 | 346 |
|
| ... | ... | |
| 374 | 374 |
typedef uint32 TCharId; |
| 375 | 375 |
public: |
| 376 | 376 |
CVerifyRingAccess(NLMISC::TTime taskDate, CServerEditionModule* serverEditionModule, TSessionId sessionId, TCharId charId) |
| 377 |
:CTask<NLMISC::TTime>(taskDate),_ServerEditionModule(serverEditionModule), _SessionId(sessionId), _CharId(charId)
|
|
| 377 |
:CTask<NLMISC::TTime>(taskDate),_ServerEditionModule(serverEditionModule), _CharId(charId), _SessionId(sessionId)
|
|
| 378 | 378 |
{
|
| 379 | 379 |
} |
| 380 | 380 |
|
| ... | ... | |
| 764 | 764 |
|
| 765 | 765 |
|
| 766 | 766 |
CEditionSession::CEditionSession(RSMGR::TSessionType sessionType, TSessionId sessionId, CEditionSession* edit) |
| 767 |
:_EditSlotIdMaker(1), SessionId(sessionId)
|
|
| 767 |
: SessionId(sessionId), _EditSlotIdMaker(1)
|
|
| 768 | 768 |
{
|
| 769 | 769 |
IsAnimationStopped = false; |
| 770 | 770 |
DateSinceNoPlayer = 0; |
| ... | ... | |
| 2572 | 2572 |
} |
| 2573 | 2573 |
|
| 2574 | 2574 |
|
| 2575 |
TPioneersSessionsAllowed * const CServerEditionModule::getSessionAllowedForChar(TCharId charId) const
|
|
| 2575 |
TPioneersSessionsAllowed * CServerEditionModule::getSessionAllowedForChar(TCharId charId) const |
|
| 2576 | 2576 |
{
|
| 2577 | 2577 |
TPioneersSessionsAlloweds::const_iterator found = _PioneersSessionsAllowed.find(charId); |
| 2578 | 2578 |
if (found == _PioneersSessionsAllowed.end()) return NULL; |
| b/code/ryzom/common/src/game_share/server_edition_module.h Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 474 | 474 |
TUserRole getRoleByCharId(TCharId charId) const; |
| 475 | 475 |
|
| 476 | 476 |
// get the session that is about to be joined by a client, or NULL if not found |
| 477 |
TPioneersSessionsAllowed * const getSessionAllowedForChar(TCharId charId) const;
|
|
| 477 |
TPioneersSessionsAllowed * getSessionAllowedForChar(TCharId charId) const; |
|
| 478 | 478 |
// get the scenario use by the user |
| 479 | 479 |
|
| 480 | 480 |
CScenario* getScenarioByCharId(TCharId charId) const; |
| b/code/ryzom/common/src/game_share/sp_type.cpp Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 23 | 23 |
|
| 24 | 24 |
static const struct { char* Name; CSPType::TSPType Value; } TSPTypeConvert[] =
|
| 25 | 25 |
{
|
| 26 |
{ "Fight", CSPType::Fight },
|
|
| 27 |
{ "Magic", CSPType::Magic },
|
|
| 28 |
{ "Craft", CSPType::Craft },
|
|
| 29 |
{ "Harvest", CSPType::Harvest },
|
|
| 26 |
{ (char*)"Fight", CSPType::Fight },
|
|
| 27 |
{ (char*)"Magic", CSPType::Magic },
|
|
| 28 |
{ (char*)"Craft", CSPType::Craft },
|
|
| 29 |
{ (char*)"Harvest", CSPType::Harvest },
|
|
| 30 | 30 |
}; |
| 31 | 31 |
/* ----------------------------------------- |
| 32 | 32 |
* Static Implementation of CSPType |
| b/code/ryzom/common/src/game_share/time_weather_season/weather_function_params_sheet_base.cpp Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 26 | 26 |
|
| 27 | 27 |
|
| 28 | 28 |
//======================================================================= |
| 29 |
CWeatherFunctionParamsSheetBase::CWeatherFunctionParamsSheetBase() : CycleLenght(25), |
|
| 30 |
DayLenght(24), |
|
| 31 |
MinThunderPeriod(1.f), |
|
| 32 |
ThunderLenght(0.5f), |
|
| 33 |
CloudWindSpeedFactor(1.f), |
|
| 34 |
CloudMinSpeed(0.f) |
|
| 29 |
CWeatherFunctionParamsSheetBase::CWeatherFunctionParamsSheetBase() |
|
| 30 |
: DayLenght(24), |
|
| 31 |
CycleLenght(25), |
|
| 32 |
MinThunderPeriod(1.f), |
|
| 33 |
ThunderLenght(0.5f), |
|
| 34 |
CloudWindSpeedFactor(1.f), |
|
| 35 |
CloudMinSpeed(0.f) |
|
| 35 | 36 |
{
|
| 36 | 37 |
} |
| 37 | 38 |
|
| b/code/ryzom/common/src/game_share/time_weather_season/weather_setup_sheet_base.cpp Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 39 | 39 |
FogColorDay(NLMISC::CRGBA::Black), |
| 40 | 40 |
FogColorDusk(NLMISC::CRGBA::Black), |
| 41 | 41 |
FogColorNight(NLMISC::CRGBA::Black), |
| 42 |
FogGradientFactor(1.f), |
|
| 42 | 43 |
Lighting(1.f), |
| 43 | 44 |
WindIntensity(0), |
| 44 |
ThunderIntensity(0), |
|
| 45 |
FogGradientFactor(1.f) |
|
| 45 |
ThunderIntensity(0) |
|
| 46 | 46 |
|
| 47 | 47 |
{
|
| 48 | 48 |
for(uint k = 0; k < NumFogType; ++k) |
| b/code/ryzom/common/src/game_share/type_skill_mod.cpp Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 43 | 43 |
PROP(sint32, Modifier)\ |
| 44 | 44 |
PROP2(Type, std::string, EGSPD::CClassificationType::toString(Type), Type=EGSPD::CClassificationType::fromString(val))\ |
| 45 | 45 |
|
| 46 |
#pragma message( PERSISTENT_GENERATION_MESSAGE ) |
|
| 46 |
#ifdef NL_PRAGMA_MESSAGE |
|
| 47 |
#pragma message( PERSISTENT_GENERATION_MESSAGE ) |
|
| 48 |
#endif // NL_PRAGMA_MESSAGE |
|
| 49 |
|
|
| 47 | 50 |
#include "persistent_data_template.h" |
| b/code/ryzom/common/src/game_share/xml_auto_ptr.h Wed May 12 11:22:25 2010 +0300 | ||
|---|---|---|
| 34 | 34 |
operator std::string() const { return std::string(_Value); }
|
| 35 | 35 |
bool operator ! () const { return _Value == NULL; }
|
| 36 | 36 |
operator const unsigned char *() const { return (const unsigned char *) _Value; }
|
| 37 |
const char operator * () const { nlassert(_Value); return *_Value; }
|
|
| 37 |
char operator * () const { nlassert(_Value); return *_Value; }
|
|
| 38 | 38 |
/// NB : This remove previous owned pointer with xmlFree |
| 39 | 39 |
CXMLAutoPtr &operator = (const char *other); |
| 40 | 40 |
CXMLAutoPtr &operator = (const unsigned char *other) |