Photon Server API
Public Member Functions | Properties | List of all members
Photon.MmoDemo.Client.MyItem Class Reference
Inheritance diagram for Photon.MmoDemo.Client.MyItem:
Photon.MmoDemo.Client.Item

Public Member Functions

 MyItem (Game game, string id, ItemType type, string text)
 
void Destroy ()
 
Hashtable BuildProperties ()
 
bool MoveAbsolute (Vector newPosition, Vector rotation)
 
bool MoveRelative (Vector offset, Vector rotation)
 
override void SetColor (int color)
 
override void SetInterestAreaAttached (bool attached)
 
override void SetInterestAreaViewDistance (Vector viewDistanceEnter, Vector viewDistanceExit)
 
void SetInterestAreaViewDistance (InterestArea camera)
 
override void SetText (string text)
 
void Spawn (Vector position, Vector rotation, int color, bool subscribe)
 
- Public Member Functions inherited from Photon.MmoDemo.Client.Item
 Item (Game game, string id, ItemType type, bool isMine=false)
 
bool AddSubscribedInterestArea (byte cameraId)
 
void GetInitialProperties ()
 
void GetProperties ()
 
bool RemoveSubscribedInterestArea (byte cameraId)
 
void ResetPreviousPosition ()
 
void SetPositions (Vector position, Vector previousPosition, Vector rotation, Vector previousRotation)
 

Properties

override bool IsMine [get]
 
bool IsMoving [get, set]
 
- Properties inherited from Photon.MmoDemo.Client.Item
virtual bool IsMine [get]
 
int Color [get]
 
Game Game [get]
 
string Id [get]
 
bool InterestAreaAttached [get]
 
bool IsDestroyed [get, set]
 
bool IsUpToDate [get]
 
Vector Position [get]
 
Vector Rotation [get]
 
Vector PreviousPosition [get]
 
Vector PreviousRotation [get]
 
int PropertyRevisionLocal [get, set]
 
int PropertyRevisionRemote [get, set]
 
string Text [get]
 
ItemType Type [get]
 
Vector ViewDistanceEnter [get]
 Subscribe to area-updates of all areas as far from item.Position as this value. More...
 
Vector ViewDistanceExit [get]
 Unsubscribe area-updates of all areas further away from item.Position than this value. More...
 

Additional Inherited Members

- Public Attributes inherited from Photon.MmoDemo.Client.Item
readonly List< byte > subscribedInterestAreas
 Keeps all interest areas which cover the item. More...
 
- Static Public Attributes inherited from Photon.MmoDemo.Client.Item
static readonly string PropertyKeyColor = "color"
 
static readonly string PropertyKeyInterestAreaAttached = "attached"
 
static readonly string PropertyKeyText = "text"
 
static readonly string PropertyKeyViewDistanceEnter = "enter"
 
static readonly string PropertyKeyViewDistanceExit = "exit"
 
- Events inherited from Photon.MmoDemo.Client.Item
Action< ItemMoved
 

Constructor & Destructor Documentation

Photon.MmoDemo.Client.MyItem.MyItem ( Game  game,
string  id,
ItemType  type,
string  text 
)
inline

Member Function Documentation

Hashtable Photon.MmoDemo.Client.MyItem.BuildProperties ( )
inline
void Photon.MmoDemo.Client.MyItem.Destroy ( )
inline
bool Photon.MmoDemo.Client.MyItem.MoveAbsolute ( Vector  newPosition,
Vector  rotation 
)
inline
bool Photon.MmoDemo.Client.MyItem.MoveRelative ( Vector  offset,
Vector  rotation 
)
inline
override void Photon.MmoDemo.Client.MyItem.SetColor ( int  color)
inlinevirtual

Reimplemented from Photon.MmoDemo.Client.Item.

override void Photon.MmoDemo.Client.MyItem.SetInterestAreaAttached ( bool  attached)
inlinevirtual

Reimplemented from Photon.MmoDemo.Client.Item.

override void Photon.MmoDemo.Client.MyItem.SetInterestAreaViewDistance ( Vector  viewDistanceEnter,
Vector  viewDistanceExit 
)
inlinevirtual

Reimplemented from Photon.MmoDemo.Client.Item.

void Photon.MmoDemo.Client.MyItem.SetInterestAreaViewDistance ( InterestArea  camera)
inline
override void Photon.MmoDemo.Client.MyItem.SetText ( string  text)
inlinevirtual

Reimplemented from Photon.MmoDemo.Client.Item.

void Photon.MmoDemo.Client.MyItem.Spawn ( Vector  position,
Vector  rotation,
int  color,
bool  subscribe 
)
inline

Property Documentation

override bool Photon.MmoDemo.Client.MyItem.IsMine
get
bool Photon.MmoDemo.Client.MyItem.IsMoving
getset