1#ifndef PORTAL_SYSTEM_H_INCLUDED
2#define PORTAL_SYSTEM_H_INCLUDED
55 void SetSize(
const float size) { mSize = size; }
58 void SetName(
const std::string& name) { mName = name; }
59 std::string
GetName()
const {
return mName; }
78 mMesh.mDecal.Initialize(decal.
GetIndex());
91 std::vector<Portal> mPortals;
Ult::Handle< stModel > ULT_MODEL
Definition PortalSystem.h:15
Definition PortalSystem.h:34
~Portal()
Definition PortalSystem.h:40
void SetName(const std::string &name)
Definition PortalSystem.h:58
float GetSize() const
Definition PortalSystem.h:56
void SetSize(const float size)
Definition PortalSystem.h:55
int GetConnectedArea() const
Definition PortalSystem.h:50
std::string GetName() const
Definition PortalSystem.h:59
void SetCenter(const Ult::Vector3D &pos)
Definition PortalSystem.h:52
void operator=(const Portal &p)
Definition PortalSystem.h:42
Ult::Vector3D GetCenter() const
Definition PortalSystem.h:53
void SetConnectedArea(int area)
Definition PortalSystem.h:49
Portal()
Definition PortalSystem.h:36
Definition PortalSystem.h:69
bool LoadSectorFromFile(const char *modelFile)
Definition PortalSystem.cpp:6
void SetDecal(const Ult::Texture &decal)
Definition PortalSystem.h:77
void SetPortal(const Portal &p)
Definition PortalSystem.h:84
std::string GetDecalFile() const
Definition PortalSystem.h:76
std::vector< Portal > * GetPortals()
Definition PortalSystem.h:85
~Sector()
Definition PortalSystem.h:72
SectorMesh * GetMesh()
Definition PortalSystem.h:82
void SetMesh(const SectorMesh &mesh)
Definition PortalSystem.h:81
Sector()
Definition PortalSystem.h:71
Ult::BoundingBox GetBoundingBox() const
Definition PortalSystem.h:87
Definition PortalSystem.h:24
Ult::ModelData mGeometry
Definition PortalSystem.h:28
std::string mDecalFile
Definition PortalSystem.h:30
Ult::Texture mDecal
Definition PortalSystem.h:29
SectorMesh()
Definition PortalSystem.h:26
Definition BoundingBox.h:18
int GetIndex() const
Definition Handle.h:36
Definition ModelData.h:26
Handle< stTexture > Texture
Definition Texture.h:10
Definition PortalSystem.h:14
Definition PortalSystem.h:18
float x
Definition PortalSystem.h:19
float z
Definition PortalSystem.h:19
float tv
Definition PortalSystem.h:20
float tu
Definition PortalSystem.h:20
float y
Definition PortalSystem.h:19