Photon Server API
Public Member Functions | Protected Member Functions | Protected Attributes | Properties | List of all members
Photon.MmoDemo.Server.MmoActor Class Reference

Represents a player in a world. More...

Inheritance diagram for Photon.MmoDemo.Server.MmoActor:
Photon.MmoDemo.Server.MmoActorOperationHandler

Public Member Functions

void AddInterestArea (InterestArea interestArea)
 
void AddItem (Item item)
 
bool RemoveInterestArea (byte interestAreaId)
 
bool RemoveItem (Item item)
 
bool TryGetInterestArea (byte interestAreaId, out InterestArea interestArea)
 
bool TryGetItem (string itemid, out Item item)
 
void Dispose ()
 

Protected Member Functions

 MmoActor (PeerBase peer, World world)
 
virtual void Dispose (bool disposing)
 Disposes the InterestAreas and destroys all owned items. More...
 

Protected Attributes

readonly InterestItems interestItems
 

Properties

Item Avatar [get, set]
 
PeerBase Peer [get]
 
World World [get]
 Gets the world the actor is member of. More...
 

Detailed Description

Represents a player in a world.

An actor can receive events using InterestAreas and publish events using items. InterestAreas and items can be added, removed and moved within the world.

Constructor & Destructor Documentation

Photon.MmoDemo.Server.MmoActor.MmoActor ( PeerBase  peer,
World  world 
)
inlineprotected

Member Function Documentation

void Photon.MmoDemo.Server.MmoActor.AddInterestArea ( InterestArea  interestArea)
inline
void Photon.MmoDemo.Server.MmoActor.AddItem ( Item  item)
inline
void Photon.MmoDemo.Server.MmoActor.Dispose ( )
inline
virtual void Photon.MmoDemo.Server.MmoActor.Dispose ( bool  disposing)
inlineprotectedvirtual

Disposes the InterestAreas and destroys all owned items.

bool Photon.MmoDemo.Server.MmoActor.RemoveInterestArea ( byte  interestAreaId)
inline
bool Photon.MmoDemo.Server.MmoActor.RemoveItem ( Item  item)
inline
bool Photon.MmoDemo.Server.MmoActor.TryGetInterestArea ( byte  interestAreaId,
out InterestArea  interestArea 
)
inline
bool Photon.MmoDemo.Server.MmoActor.TryGetItem ( string  itemid,
out Item  item 
)
inline

Member Data Documentation

readonly InterestItems Photon.MmoDemo.Server.MmoActor.interestItems
protected

Property Documentation

Item Photon.MmoDemo.Server.MmoActor.Avatar
getset
PeerBase Photon.MmoDemo.Server.MmoActor.Peer
get
World Photon.MmoDemo.Server.MmoActor.World
get

Gets the world the actor is member of.