Added serverGame library

This commit is contained in:
Anonymous
2014-01-15 03:59:18 -07:00
parent 89291fb38c
commit 0196cf51d0
1032 changed files with 256379 additions and 0 deletions
@@ -0,0 +1,75 @@
// ======================================================================
//
// PatrolPathRootProperty.h
// Copyright 2001 Sony Online Entertainment Inc.
// All Rights Reserved.
//
// ======================================================================
#ifndef INCLUDED_PatrolPathRootProperty_H
#define INCLUDED_PatrolPathRootProperty_H
// ======================================================================
#include "sharedFoundation/Watcher.h"
#include "sharedObject/Property.h"
class ServerObject;
// ======================================================================
class PatrolPathRootProperty : public Property
{
public:
static PropertyId getClassPropertyId();
public:
PatrolPathRootProperty(Object& thisObject);
~PatrolPathRootProperty();
int getObserverCount() const;
void incrementObserverCount();
void decrementObserverCount();
void addPatrollingObject(const ServerObject & ai);
void removePatrollingObject(const ServerObject & ai);
const stdset<ConstWatcher<ServerObject> >::fwd & getPatrollingObjects() const;
private:
int m_observerCount;
stdset<ConstWatcher<ServerObject> >::fwd * m_patrollers;
private:
PatrolPathRootProperty();
PatrolPathRootProperty(const PatrolPathRootProperty&);
PatrolPathRootProperty& operator= (const PatrolPathRootProperty&);
};
// ======================================================================
inline int PatrolPathRootProperty::getObserverCount() const
{
return m_observerCount;
}
inline void PatrolPathRootProperty::incrementObserverCount()
{
++m_observerCount;
}
inline void PatrolPathRootProperty::decrementObserverCount()
{
--m_observerCount;
}
// ======================================================================
#endif