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

Grid used to divide the world. It contains Regions. More...

Inheritance diagram for Photon.MmoDemo.Server.GridWorld:
Photon.MmoDemo.Server.World

Public Member Functions

 GridWorld (BoundingBox area, Vector tileDimensions)
 
void Dispose ()
 
Region GetRegion (Vector position)
 
IEnumerable< RegionGetRegions (BoundingBox area)
 

Protected Member Functions

virtual void Dispose (bool disposing)
 

Properties

BoundingBox Area [get]
 
Vector TileDimensions [get]
 
int TileX [get]
 
int TileY [get]
 

Detailed Description

Grid used to divide the world. It contains Regions.

Constructor & Destructor Documentation

Photon.MmoDemo.Server.GridWorld.GridWorld ( BoundingBox  area,
Vector  tileDimensions 
)
inline

Member Function Documentation

void Photon.MmoDemo.Server.GridWorld.Dispose ( )
inline
virtual void Photon.MmoDemo.Server.GridWorld.Dispose ( bool  disposing)
inlineprotectedvirtual
Region Photon.MmoDemo.Server.GridWorld.GetRegion ( Vector  position)
inline
IEnumerable<Region> Photon.MmoDemo.Server.GridWorld.GetRegions ( BoundingBox  area)
inline

Property Documentation

BoundingBox Photon.MmoDemo.Server.GridWorld.Area
get
Vector Photon.MmoDemo.Server.GridWorld.TileDimensions
get
int Photon.MmoDemo.Server.GridWorld.TileX
get
int Photon.MmoDemo.Server.GridWorld.TileY
get