mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-22 06:46:14 +00:00
Fixed: Virtual methods with different parameters
This commit is contained in:
parent
dcad84bbb9
commit
67e3108c25
13 changed files with 31 additions and 31 deletions
|
@ -841,7 +841,7 @@ public:
|
|||
|
||||
|
||||
/// return true when there are still emitters in the system
|
||||
bool hasEmitters(void) const;
|
||||
bool hasEmitters() const;
|
||||
|
||||
/// return true when there are still particles
|
||||
bool hasParticles() const;
|
||||
|
|
|
@ -163,10 +163,10 @@ class CParticleSystemProcess : public NLMISC::IStreamable
|
|||
virtual void setMatrixMode(TPSMatrixMode matrixMode);
|
||||
|
||||
/// tells whether there are alive entities / particles in the system
|
||||
virtual bool hasParticles(void) const { return false ; }
|
||||
virtual bool hasParticles() const { return false ; }
|
||||
|
||||
/// tells whether there are alive emitters / particles in the system
|
||||
virtual bool hasEmitters(void) const { return false ; }
|
||||
virtual bool hasEmitters() const { return false ; }
|
||||
|
||||
|
||||
/// max number of faces wanted by this process (for load balancing)
|
||||
|
|
|
@ -51,14 +51,14 @@ public:
|
|||
//@}
|
||||
|
||||
/// Return this bindable type
|
||||
uint32 getType(void) const { return PSEmitter; }
|
||||
uint32 getType() const { return PSEmitter; }
|
||||
|
||||
|
||||
/// Return priority for emitters
|
||||
virtual uint32 getPriority(void) const { return 500; }
|
||||
virtual uint32 getPriority() const { return 500; }
|
||||
|
||||
/// Return true if this located bindable derived class holds alive emitters
|
||||
virtual bool hasEmitters(void) { nlassert(_Owner); return _Owner->getSize() != 0; }
|
||||
virtual bool hasEmitters() const { nlassert(_Owner); return _Owner->getSize() != 0; }
|
||||
|
||||
|
||||
virtual void step(TPSProcessPass pass);
|
||||
|
@ -76,7 +76,7 @@ public:
|
|||
|
||||
|
||||
/// Display the emitter in edition mode
|
||||
virtual void showTool(void);
|
||||
virtual void showTool();
|
||||
|
||||
/** Set the type of located to be emitted. The default is NULL which mean that no emission will occur
|
||||
* \return true if the operation could be performed. It can fail when this cause the system the system to last forever,
|
||||
|
@ -90,9 +90,9 @@ public:
|
|||
virtual void notifyTargetRemoved(CPSLocated *ptr);
|
||||
|
||||
/// Get emitted type.
|
||||
CPSLocated *getEmittedType(void) { return _EmittedType; }
|
||||
CPSLocated *getEmittedType() { return _EmittedType; }
|
||||
/// Get const ptr on emitted type
|
||||
const CPSLocated *getEmittedType(void) const { return _EmittedType; }
|
||||
const CPSLocated *getEmittedType() const { return _EmittedType; }
|
||||
|
||||
|
||||
/** The type of emission.
|
||||
|
|
|
@ -449,14 +449,14 @@ public:
|
|||
void setName(const std::string &name) { _Name = name; }
|
||||
|
||||
/// get the located bindable name (edition purpose)
|
||||
std::string getName(void) const { return _Name; }
|
||||
std::string getName() const { return _Name; }
|
||||
|
||||
|
||||
/// tells whether there are alive entities / particles in the system
|
||||
virtual bool hasParticles(void) const;
|
||||
virtual bool hasParticles() const;
|
||||
|
||||
/// tells whether there are alive emitters / particles in the system
|
||||
virtual bool hasEmitters(void) const;
|
||||
virtual bool hasEmitters() const;
|
||||
|
||||
/** Enable the to force LOD degradation. This will suppress instances immediately, (during the motion pass) so that
|
||||
* there won't be more than maxNbInstance * dist / maxDist instances. This may not be desirable
|
||||
|
@ -468,7 +468,7 @@ public:
|
|||
/** Test whether LOD degradation was activated
|
||||
* \see forceLODDegradation()
|
||||
*/
|
||||
bool hasLODDegradation(void) const { return _LODDegradation; }
|
||||
bool hasLODDegradation() const { return _LODDegradation; }
|
||||
|
||||
|
||||
/// for the CPSLocated to reevaluate the max number of faces it may need
|
||||
|
@ -853,11 +853,11 @@ public:
|
|||
*/
|
||||
void setLOD(TPSLod lod) { _LOD = lod; }
|
||||
/// get the valid lods for that object
|
||||
TPSLod getLOD(void) const { return _LOD; }
|
||||
TPSLod getLOD() const { return _LOD; }
|
||||
/// tells whether there are alive entities / particles
|
||||
virtual bool hasParticles(void) const { return false; }
|
||||
virtual bool hasParticles() const { return false; }
|
||||
/// tells whether there are alive emitters
|
||||
virtual bool hasEmitters(void) const { return false; }
|
||||
virtual bool hasEmitters() const { return false; }
|
||||
/** set the extern ID of this located bindable. 0 means no extern access. The map of ID-locatedBindable. Is in th
|
||||
* particle system, so this located bindable must have been attached to a particle system, otherwise an assertion is raised
|
||||
*/
|
||||
|
|
|
@ -64,7 +64,7 @@ namespace NLGUI
|
|||
xmlNodePtr serialize( xmlNodePtr parentNode, const char *type ) const;
|
||||
|
||||
// to be called by CGroupTable
|
||||
bool parse (xmlNodePtr cur, CInterfaceGroup * parentGroup, uint columnIndex, uint rowIndex);
|
||||
bool parseCell (xmlNodePtr cur, CInterfaceGroup * parentGroup, uint columnIndex, uint rowIndex);
|
||||
|
||||
// If the cell is a new line. This is the first <td> after a <tr>
|
||||
bool NewLine;
|
||||
|
|
|
@ -264,7 +264,7 @@ namespace NLNET
|
|||
|
||||
/** Send a message to a module.
|
||||
*/
|
||||
virtual void sendModuleMessage(IModuleProxy *senderProxy, IModuleProxy *addresseeProxy, const NLNET::CMessage &message) =0;
|
||||
virtual void sendModuleProxyMessage(IModuleProxy *senderProxy, IModuleProxy *addresseeProxy, const NLNET::CMessage &message) =0;
|
||||
|
||||
/** Send a message to the module plugged in this gateway.
|
||||
* You can override this method to change the dispatching, add filtering,
|
||||
|
|
|
@ -320,7 +320,7 @@ void CParticleSystem::setViewMat(const NLMISC::CMatrix &m)
|
|||
}
|
||||
|
||||
///=======================================================================================
|
||||
bool CParticleSystem::hasEmitters(void) const
|
||||
bool CParticleSystem::hasEmitters() const
|
||||
{
|
||||
NL_PS_FUNC_MAIN(CParticleSystem_hasEmitters)
|
||||
for (TProcessVect::const_iterator it = _ProcessVect.begin(); it != _ProcessVect.end(); ++it)
|
||||
|
|
|
@ -480,7 +480,7 @@ uint CPSLocated::querryMaxWantedNumFaces(void)
|
|||
|
||||
/// ***************************************************************************************
|
||||
/// tells whether there are alive entities / particles in the system
|
||||
bool CPSLocated::hasParticles(void) const
|
||||
bool CPSLocated::hasParticles() const
|
||||
{
|
||||
NL_PS_FUNC(CPSLocated_hasParticles)
|
||||
CHECK_PS_INTEGRITY
|
||||
|
@ -494,7 +494,7 @@ bool CPSLocated::hasParticles(void) const
|
|||
|
||||
/// ***************************************************************************************
|
||||
/// tells whether there are alive emitters
|
||||
bool CPSLocated::hasEmitters(void) const
|
||||
bool CPSLocated::hasEmitters() const
|
||||
{
|
||||
NL_PS_FUNC(CPSLocated_hasEmitters)
|
||||
CHECK_PS_INTEGRITY
|
||||
|
|
|
@ -340,7 +340,7 @@ namespace NLGUI
|
|||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
bool CGroupCell::parse(xmlNodePtr cur, CInterfaceGroup * parentGroup, uint columnIndex, uint rowIndex)
|
||||
bool CGroupCell::parseCell(xmlNodePtr cur, CInterfaceGroup * parentGroup, uint columnIndex, uint rowIndex)
|
||||
{
|
||||
CXMLAutoPtr ptr;
|
||||
ptr = (char*) xmlGetProp( cur, (xmlChar*)"id");
|
||||
|
@ -1562,7 +1562,7 @@ namespace NLGUI
|
|||
if (strcmp((char*)currCol->name,"TD") == 0)
|
||||
{
|
||||
CGroupCell *cell = new CGroupCell(CViewBase::TCtorParam());
|
||||
if (cell->parse(currCol, this, column, row))
|
||||
if (cell->parseCell(currCol, this, column, row))
|
||||
{
|
||||
cell->NewLine = newLine;
|
||||
newLine = false;
|
||||
|
|
|
@ -879,7 +879,7 @@ namespace NLNET
|
|||
throw EModuleNotReachable();
|
||||
}
|
||||
|
||||
_Gateway->sendModuleMessage(senderProx, this, message);
|
||||
_Gateway->sendModuleProxyMessage(senderProx, this, message);
|
||||
}
|
||||
|
||||
const TSecurityData *CModuleProxy::findSecurityData(uint8 dataTag) const
|
||||
|
|
|
@ -627,7 +627,7 @@ namespace NLNET
|
|||
if (from->NextMessageType != CModuleMessageHeaderCodec::mt_invalid)
|
||||
{
|
||||
// this message must be dispatched to a module
|
||||
onReceiveModuleMessage(from, msgin);
|
||||
onReceiveModuleMessageFromGateway(from, msgin);
|
||||
}
|
||||
// Not a module message, dispatch the gateway message
|
||||
else if (msgin.getName() == "MOD_OP")
|
||||
|
@ -813,7 +813,7 @@ namespace NLNET
|
|||
/***********************************/
|
||||
|
||||
/** A gateway receive module operation */
|
||||
void onReceiveModuleMessage(CGatewayRoute *from, const CMessage &msgin)
|
||||
void onReceiveModuleMessageFromGateway(CGatewayRoute *from, const CMessage &msgin)
|
||||
{
|
||||
H_AUTO(CModuleGetaway_onReceiveModuleMessage);
|
||||
// clean the message type now, any return path will be safe
|
||||
|
@ -843,7 +843,7 @@ namespace NLNET
|
|||
addresseeProxy = it->second;
|
||||
|
||||
// give the message to the gateway (either for local dispatch or for forwarding)
|
||||
sendModuleMessage(senderProxy, addresseeProxy, msgin);
|
||||
sendModuleProxyMessage(senderProxy, addresseeProxy, msgin);
|
||||
}
|
||||
|
||||
// A gateway receive a module message header
|
||||
|
@ -1293,7 +1293,7 @@ namespace NLNET
|
|||
}
|
||||
|
||||
|
||||
virtual void sendModuleMessage(IModuleProxy *senderProxy, IModuleProxy *addresseeProxy, const NLNET::CMessage &message)
|
||||
virtual void sendModuleProxyMessage(IModuleProxy *senderProxy, IModuleProxy *addresseeProxy, const NLNET::CMessage &message)
|
||||
{
|
||||
H_AUTO(CModuleGetaway_sendModuleMessage);
|
||||
// manage firewall
|
||||
|
@ -1581,7 +1581,7 @@ namespace NLNET
|
|||
IModuleProxy *destProx = it2->second;
|
||||
|
||||
|
||||
sendModuleMessage(senderProx, destProx, message);
|
||||
sendModuleProxyMessage(senderProx, destProx, message);
|
||||
}
|
||||
|
||||
virtual void _broadcastModuleMessage(IModule *senderModule, const NLNET::CMessage &message)
|
||||
|
|
|
@ -287,7 +287,7 @@ namespace NLNET
|
|||
// virtual void onReceiveModuleMessage(TModuleGatewayProxyPtr &senderGateway, TModuleMessagePtr &message)
|
||||
// {
|
||||
// }
|
||||
virtual void sendModuleMessage(IModuleProxy * /* senderProxy */, IModuleProxy * /* addresseeProxy */, const CMessage &/* message */)
|
||||
virtual void sendModuleProxyMessage(IModuleProxy * /* senderProxy */, IModuleProxy * /* addresseeProxy */, const CMessage &/* message */)
|
||||
{
|
||||
}
|
||||
virtual void dispatchModuleMessage(IModuleProxy * /* senderProxy */, IModuleProxy * /* addresseeProxy */, const CMessage &/* message */)
|
||||
|
|
|
@ -45,7 +45,7 @@ public:
|
|||
/**
|
||||
* observer update
|
||||
*/
|
||||
virtual void update (NLMISC::CCDBNodeLeaf* leaf)=0;
|
||||
virtual void update (NLMISC::ICDBNode* leaf)=0;
|
||||
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue