47 virtual void step(f32 dtime) = 0;
87 std::vector<PointedThing> &objects,
88 const std::optional<Pointabilities> &pointabilities) = 0;
Definition environment.h:34
float m_cache_active_block_mgmt_interval
Definition environment.h:135
u32 m_added_objects
Definition environment.h:98
virtual ~Environment()=default
void setDayNightRatioOverride(bool enable, u32 value)
Definition environment.cpp:43
IGameDef * m_gamedef
Definition environment.h:140
std::atomic< float > m_time_of_day_speed
Definition environment.h:103
virtual void step(f32 dtime)=0
u32 m_time_of_day
Definition environment.h:109
bool m_enable_day_night_ratio_override
Definition environment.h:116
u32 getDayNightRatio()
Definition environment.cpp:30
std::atomic< u32 > m_day_count
Definition environment.h:120
virtual void getSelectedActiveObjects(const core::line3d< f32 > &shootline_on_map, std::vector< PointedThing > &objects, const std::optional< Pointabilities > &pointabilities)=0
u32 getTimeOfDay()
Definition environment.cpp:59
float m_time_conversion_skew
Definition environment.h:114
DISABLE_CLASS_COPY(Environment)
float m_time_of_day_f
Definition environment.h:111
float m_cache_abm_time_budget
Definition environment.h:138
u32 m_day_night_ratio_override
Definition environment.h:117
std::mutex m_time_lock
Definition environment.h:143
void setTimeOfDaySpeed(float speed)
Definition environment.cpp:38
IGameDef * getGameDef()
Definition environment.h:100
bool m_cache_enable_shaders
Definition environment.h:134
Environment(IGameDef *gamedef)
Definition environment.cpp:15
bool line_of_sight(v3f pos1, v3f pos2, v3s16 *p=nullptr)
Definition environment.cpp:71
u32 getDayCount()
Definition environment.cpp:323
float m_cache_nodetimer_interval
Definition environment.h:137
float m_cache_abm_interval
Definition environment.h:136
void stepTimeOfDay(float dtime)
Definition environment.cpp:289
virtual void setTimeOfDay(u32 time)
Definition environment.cpp:50
float getTimeOfDayF()
Definition environment.cpp:65
void continueRaycast(RaycastState *state, PointedThing *result)
Definition environment.cpp:109
Describes the state of a raycast.
Definition raycast.h:18
core::vector3d< s16 > v3s16
Definition irr_v3d.h:13
core::vector3df v3f
Definition irr_v3d.h:11
Definition pointabilities.h:30
An active object or node which is selected by a ray on the map.
Definition pointedthing.h:22
static std::string p(std::string path)
Definition test_filesys.cpp:53