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

Public Member Functions

 Game (IGameListener listener, Settings settings, string avatarName)
 
void AddCamera (InterestArea camera)
 
void AddItem (Item item)
 
void Disconnect ()
 
void Initialize (PhotonPeer photonPeer)
 
void Connect ()
 
void EnterWorld ()
 
void OnCameraAttached (string itemId)
 
void OnCameraDetached ()
 
void OnItemSpawned (string itemId)
 
void OnUnexpectedEventReceive (EventData @event)
 
void OnUnexpectedOperationError (OperationResponse operationResponse)
 
void OnUnexpectedPhotonReturn (OperationResponse operationResponse)
 
bool RemoveCamera (byte cameraId)
 
bool RemoveItem (Item item)
 
void SendOperation (OperationCode operationCode, Dictionary< byte, object > parameter, bool sendReliable, byte channelId)
 
void SetConnected ()
 
void SetDisconnected (StatusCode returnCode)
 
void SetStateWorldEntered (WorldData worldData)
 
bool TryGetCamera (byte cameraId, out InterestArea camera)
 
bool TryGetItem (string itemId, out Item item)
 
void Update ()
 
void DebugReturn (DebugLevel debugLevel, string debug)
 
void OnEvent (EventData ev)
 
void OnOperationResponse (OperationResponse response)
 
void OnStatusChanged (StatusCode returnCode)
 
void OnMessage (object messages)
 
void OnEventReceive (EventData eventData)
 

Static Public Attributes

static readonly Vector MoveDown = new Vector { X = 0, Y = -1 }
 
static readonly Vector MoveDownLeft = new Vector { X = -1, Y = -1 }
 
static readonly Vector MoveDownRight = new Vector { X = 1, Y = -1 }
 
static readonly Vector MoveLeft = new Vector { X = -1, Y = 0 }
 
static readonly Vector MoveRight = new Vector { X = 1, Y = 0 }
 
static readonly Vector MoveUp = new Vector { X = 0, Y = 1 }
 
static readonly Vector MoveUpLeft = new Vector { X = -1, Y = 1 }
 
static readonly Vector MoveUpRight = new Vector { X = 1, Y = 1 }
 

Properties

MyItem Avatar [get]
 
Dictionary< string, ItemItems [get]
 
IGameListener Listener [get]
 
PhotonPeer Peer [get]
 
Settings Settings [get]
 
bool WorldEntered [get]
 
WorldData WorldData [get]
 

Constructor & Destructor Documentation

Photon.MmoDemo.Client.Game.Game ( IGameListener  listener,
Settings  settings,
string  avatarName 
)
inline

Member Function Documentation

void Photon.MmoDemo.Client.Game.AddCamera ( InterestArea  camera)
inline
void Photon.MmoDemo.Client.Game.AddItem ( Item  item)
inline
void Photon.MmoDemo.Client.Game.Connect ( )
inline
void Photon.MmoDemo.Client.Game.DebugReturn ( DebugLevel  debugLevel,
string  debug 
)
inline
void Photon.MmoDemo.Client.Game.Disconnect ( )
inline
void Photon.MmoDemo.Client.Game.EnterWorld ( )
inline
void Photon.MmoDemo.Client.Game.Initialize ( PhotonPeer  photonPeer)
inline
void Photon.MmoDemo.Client.Game.OnCameraAttached ( string  itemId)
inline
void Photon.MmoDemo.Client.Game.OnCameraDetached ( )
inline
void Photon.MmoDemo.Client.Game.OnEvent ( EventData  ev)
inline
void Photon.MmoDemo.Client.Game.OnEventReceive ( EventData  eventData)
inline
void Photon.MmoDemo.Client.Game.OnItemSpawned ( string  itemId)
inline
void Photon.MmoDemo.Client.Game.OnMessage ( object  messages)
inline
void Photon.MmoDemo.Client.Game.OnOperationResponse ( OperationResponse  response)
inline
void Photon.MmoDemo.Client.Game.OnStatusChanged ( StatusCode  returnCode)
inline
void Photon.MmoDemo.Client.Game.OnUnexpectedEventReceive ( EventData @  event)
inline
void Photon.MmoDemo.Client.Game.OnUnexpectedOperationError ( OperationResponse  operationResponse)
inline
void Photon.MmoDemo.Client.Game.OnUnexpectedPhotonReturn ( OperationResponse  operationResponse)
inline
bool Photon.MmoDemo.Client.Game.RemoveCamera ( byte  cameraId)
inline
bool Photon.MmoDemo.Client.Game.RemoveItem ( Item  item)
inline
void Photon.MmoDemo.Client.Game.SendOperation ( OperationCode  operationCode,
Dictionary< byte, object >  parameter,
bool  sendReliable,
byte  channelId 
)
inline
void Photon.MmoDemo.Client.Game.SetConnected ( )
inline
void Photon.MmoDemo.Client.Game.SetDisconnected ( StatusCode  returnCode)
inline
void Photon.MmoDemo.Client.Game.SetStateWorldEntered ( WorldData  worldData)
inline
bool Photon.MmoDemo.Client.Game.TryGetCamera ( byte  cameraId,
out InterestArea  camera 
)
inline
bool Photon.MmoDemo.Client.Game.TryGetItem ( string  itemId,
out Item  item 
)
inline
void Photon.MmoDemo.Client.Game.Update ( )
inline

Member Data Documentation

readonly Vector Photon.MmoDemo.Client.Game.MoveDown = new Vector { X = 0, Y = -1 }
static
readonly Vector Photon.MmoDemo.Client.Game.MoveDownLeft = new Vector { X = -1, Y = -1 }
static
readonly Vector Photon.MmoDemo.Client.Game.MoveDownRight = new Vector { X = 1, Y = -1 }
static
readonly Vector Photon.MmoDemo.Client.Game.MoveLeft = new Vector { X = -1, Y = 0 }
static
readonly Vector Photon.MmoDemo.Client.Game.MoveRight = new Vector { X = 1, Y = 0 }
static
readonly Vector Photon.MmoDemo.Client.Game.MoveUp = new Vector { X = 0, Y = 1 }
static
readonly Vector Photon.MmoDemo.Client.Game.MoveUpLeft = new Vector { X = -1, Y = 1 }
static
readonly Vector Photon.MmoDemo.Client.Game.MoveUpRight = new Vector { X = 1, Y = 1 }
static

Property Documentation

MyItem Photon.MmoDemo.Client.Game.Avatar
get
Dictionary<string, Item> Photon.MmoDemo.Client.Game.Items
get
IGameListener Photon.MmoDemo.Client.Game.Listener
get
PhotonPeer Photon.MmoDemo.Client.Game.Peer
get
Settings Photon.MmoDemo.Client.Game.Settings
get
WorldData Photon.MmoDemo.Client.Game.WorldData
get
bool Photon.MmoDemo.Client.Game.WorldEntered
get