Tramway SDK
transition.h
Go to the documentation of this file.
1// TRAMWAY DRIFT AND DUNGEON EXPLORATION SIMULATOR 2022
2// All rights reserved.
3
4#ifndef TRAM_SDK_FRAMEWORK_TRANSITION_H
5#define TRAM_SDK_FRAMEWORK_TRANSITION_H
6
7#include <vector>
8
9#include <framework/uid.h>
10#include <framework/math.h>
11
12namespace tram {
13
14class WorldCell;
15
17public:
19 ~Transition () = delete;
20 void AddPoint (vec3 point);
21 void GeneratePlanes (bool disp = false);
22 bool IsInside (vec3 point);
25 static Transition* Find (name_t name);
27protected:
31 std::vector<vec3> points;
32 std::vector<vec4> planes;
33 friend class WorldCell;
34};
35
36}
37
38#endif // TRAM_SDK_FRAMEWORK_TRANSITION_H
Definition: transition.h:16
void AddPoint(vec3 point)
Definition: transition.cpp:54
WorldCell * cell_into
Definition: transition.h:30
Transition(name_t name, WorldCell *cell_from, WorldCell *cell_into)
Definition: transition.cpp:35
static Transition * Find(name_t name)
Definition: transition.cpp:17
std::vector< vec4 > planes
Definition: transition.h:32
WorldCell * GetInto()
Definition: transition.h:23
std::vector< vec3 > points
Definition: transition.h:31
name_t name
Definition: transition.h:28
~Transition()=delete
bool IsInside(vec3 point)
Definition: transition.cpp:58
WorldCell * cell_from
Definition: transition.h:29
WorldCell * GetFrom()
Definition: transition.h:24
void GeneratePlanes(bool disp=false)
Definition: transition.cpp:64
static Transition * Make(name_t name, WorldCell *cell_from, WorldCell *cell_into)
Definition: transition.cpp:21
Definition: worldcell.h:18
Definition: api.h:9
glm::vec3 vec3
Definition: math.h:12
Definition: uid.h:11