15#error Do not include in server builds
113 std::vector<DistanceSortedActiveObject> &dest)
124 const core::line3d<f32> &shootline_on_map,
125 std::vector<PointedThing> &objects,
126 const std::optional<Pointabilities> &pointabilities
T * getActiveObject(u16 id)
Definition activeobjectmgr.h:48
Definition clientobject.h:30
Definition clientenvironment.h:54
irr_ptr< ClientMap > m_map
Definition clientenvironment.h:141
u64 getFrameTimeDelta() const
Definition clientenvironment.h:138
ClientScripting * m_script
Definition clientenvironment.h:145
bool hasClientEnvEvents() const
Definition clientenvironment.h:118
client::ActiveObjectMgr m_ao_manager
Definition clientenvironment.h:146
virtual void getSelectedActiveObjects(const core::line3d< f32 > &shootline_on_map, std::vector< PointedThing > &objects, const std::optional< Pointabilities > &pointabilities)
Definition clientenvironment.cpp:425
IntervalLimiter m_active_object_light_update_interval
Definition clientenvironment.h:149
void removePlayerName(const std::string &name)
Definition clientenvironment.h:131
u64 m_frame_time_pause_accumulator
Definition clientenvironment.h:154
GenericCAO * getGenericCAO(u16 id)
Definition clientenvironment.cpp:290
void addSimpleObject(ClientSimpleObject *simple)
Definition clientenvironment.cpp:285
void step(f32 dtime)
Definition clientenvironment.cpp:74
ClientMap & getClientMap()
Definition clientenvironment.cpp:58
void processActiveObjectMessage(u16 id, const std::string &data)
Definition clientenvironment.cpp:368
void updateCameraOffset(const v3s16 &camera_offset)
Definition clientenvironment.h:132
ClientEnvironment(irr_ptr< ClientMap > map, ITextureSource *texturesource, Client *client)
Definition clientenvironment.cpp:31
void removeActiveObject(u16 id)
Definition clientenvironment.cpp:352
std::set< std::string > m_player_names
Definition clientenvironment.h:150
u64 m_frame_time
Definition clientenvironment.h:152
const std::set< std::string > & getPlayerNames()
Definition clientenvironment.h:129
Client * m_client
Definition clientenvironment.h:144
void damageLocalPlayer(u16 damage, bool handle_hp=true)
Definition clientenvironment.cpp:392
void getActiveObjects(const v3f &origin, f32 max_d, std::vector< DistanceSortedActiveObject > &dest)
Definition clientenvironment.h:112
LocalPlayer * m_local_player
Definition clientenvironment.h:142
ClientActiveObject * getActiveObject(u16 id)
Definition clientenvironment.h:81
v3s16 m_camera_offset
Definition clientenvironment.h:151
ClientEnvEvent getClientEnvEvent()
Definition clientenvironment.cpp:415
LocalPlayer * getLocalPlayer() const
Definition clientenvironment.h:68
std::vector< ClientSimpleObject * > m_simple_objects
Definition clientenvironment.h:147
Client * getGameDef()
Definition clientenvironment.h:62
u64 getFrameTime() const
Definition clientenvironment.h:137
void updateFrameTime(bool is_paused)
Definition clientenvironment.cpp:476
void addPlayerName(const std::string &name)
Definition clientenvironment.h:130
u64 m_frame_dtime
Definition clientenvironment.h:153
~ClientEnvironment()
Definition clientenvironment.cpp:40
std::queue< ClientEnvEvent > m_client_event_queue
Definition clientenvironment.h:148
ITextureSource * m_texturesource
Definition clientenvironment.h:143
virtual void setLocalPlayer(LocalPlayer *player)
Definition clientenvironment.cpp:63
u16 addActiveObject(std::unique_ptr< ClientActiveObject > object)
Definition clientenvironment.cpp:299
v3s16 getCameraOffset() const
Definition clientenvironment.h:134
void setScript(ClientScripting *script)
Definition clientenvironment.h:63
Map & getMap()
Definition clientenvironment.cpp:53
Definition clientmap.h:46
Definition scripting_client.h:23
Definition clientsimpleobject.h:11
Definition environment.h:34
Definition content_cao.h:56
Definition texturesource.h:36
Definition localplayer.h:49
Definition activeobjectmgr.h:15
void getActiveObjects(const v3f &origin, f32 max_d, std::vector< DistanceSortedActiveObject > &dest)
Definition activeobjectmgr.cpp:75
ClientEnvEventType
Definition clientenvironment.h:34
@ CEE_PLAYER_DAMAGE
Definition clientenvironment.h:36
@ CEE_NONE
Definition clientenvironment.h:35
std::unordered_map< u16, ClientActiveObject * > ClientActiveObjectMap
Definition clientenvironment.h:52
core::vector3d< s16 > v3s16
Definition irr_v3d.h:13
core::vector3df v3f
Definition irr_v3d.h:11
Definition activeobjectmgr.cpp:11
Definition clientenvironment.h:40
ClientEnvEventType type
Definition clientenvironment.h:41
struct ClientEnvEvent::@0::@2 player_damage
u16 amount
Definition clientenvironment.h:46
bool send_to_server
Definition clientenvironment.h:47