diff options
Diffstat (limited to 'src/game/client/entity')
| -rw-r--r-- | src/game/client/entity/camera.cc | 5 | ||||
| -rw-r--r-- | src/game/client/entity/camera.hh | 9 | ||||
| -rw-r--r-- | src/game/client/entity/factory.cc | 5 | ||||
| -rw-r--r-- | src/game/client/entity/factory.hh | 9 | ||||
| -rw-r--r-- | src/game/client/entity/interpolation.cc | 5 | ||||
| -rw-r--r-- | src/game/client/entity/interpolation.hh | 9 | ||||
| -rw-r--r-- | src/game/client/entity/listener.cc | 5 | ||||
| -rw-r--r-- | src/game/client/entity/listener.hh | 9 | ||||
| -rw-r--r-- | src/game/client/entity/player_look.cc | 5 | ||||
| -rw-r--r-- | src/game/client/entity/player_look.hh | 9 | ||||
| -rw-r--r-- | src/game/client/entity/player_move.cc | 5 | ||||
| -rw-r--r-- | src/game/client/entity/player_move.hh | 9 | ||||
| -rw-r--r-- | src/game/client/entity/sound_emitter.cc | 5 | ||||
| -rw-r--r-- | src/game/client/entity/sound_emitter.hh | 9 |
14 files changed, 98 insertions, 0 deletions
diff --git a/src/game/client/entity/camera.cc b/src/game/client/entity/camera.cc index 27603cf..8cd08fd 100644 --- a/src/game/client/entity/camera.cc +++ b/src/game/client/entity/camera.cc @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: BSD-2-Clause +// Copyright (c) 2025 Kirill Dmitrievich +// File: camera.cc +// Description: Client view matrix calculations + #include "client/pch.hh" #include "client/entity/camera.hh" diff --git a/src/game/client/entity/camera.hh b/src/game/client/entity/camera.hh index 526bc91..133fedc 100644 --- a/src/game/client/entity/camera.hh +++ b/src/game/client/entity/camera.hh @@ -1,3 +1,10 @@ +// SPDX-License-Identifier: BSD-2-Clause +// Copyright (c) 2025 Kirill Dmitrievich +// File: camera.hh +// Description: Client view matrix calculations + +#ifndef CLIENT_ENTITY_CAMERA_HH +#define CLIENT_ENTITY_CAMERA_HH #pragma once #include "shared/types.hh" @@ -29,3 +36,5 @@ namespace camera void init(void); void update(void); } // namespace camera + +#endif diff --git a/src/game/client/entity/factory.cc b/src/game/client/entity/factory.cc index 94a9698..019d855 100644 --- a/src/game/client/entity/factory.cc +++ b/src/game/client/entity/factory.cc @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: BSD-2-Clause +// Copyright (c) 2025 Kirill Dmitrievich +// File: factory.cc +// Description: Boilerplate entity creation + #include "client/pch.hh" #include "client/entity/factory.hh" diff --git a/src/game/client/entity/factory.hh b/src/game/client/entity/factory.hh index 776a0b8..20714ff 100644 --- a/src/game/client/entity/factory.hh +++ b/src/game/client/entity/factory.hh @@ -1,3 +1,10 @@ +// SPDX-License-Identifier: BSD-2-Clause +// Copyright (c) 2025 Kirill Dmitrievich +// File: factory.hh +// Description: Boilerplate entity creation + +#ifndef CLIENT_ENTITY_FACTORY_HH +#define CLIENT_ENTITY_FACTORY_HH #pragma once class Dimension; @@ -6,3 +13,5 @@ namespace client { void create_player(Dimension* dimension, entt::entity entity); } // namespace client + +#endif diff --git a/src/game/client/entity/interpolation.cc b/src/game/client/entity/interpolation.cc index 86af971..b1318c9 100644 --- a/src/game/client/entity/interpolation.cc +++ b/src/game/client/entity/interpolation.cc @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: BSD-2-Clause +// Copyright (c) 2025 Kirill Dmitrievich +// File: interpolation.cc +// Description: Interpolate components between server frames + #include "client/pch.hh" #include "client/entity/interpolation.hh" diff --git a/src/game/client/entity/interpolation.hh b/src/game/client/entity/interpolation.hh index 8fb0db1..cc18b23 100644 --- a/src/game/client/entity/interpolation.hh +++ b/src/game/client/entity/interpolation.hh @@ -1,6 +1,15 @@ +// SPDX-License-Identifier: BSD-2-Clause +// Copyright (c) 2025 Kirill Dmitrievich +// File: interpolation.hh +// Description: Interpolate components between server frames + +#ifndef CLIENT_ENTITY_INTERPOLATION_HH +#define CLIENT_ENTITY_INTERPOLATION_HH #pragma once namespace interpolation { void update(void); } // namespace interpolation + +#endif diff --git a/src/game/client/entity/listener.cc b/src/game/client/entity/listener.cc index af574ae..e411f72 100644 --- a/src/game/client/entity/listener.cc +++ b/src/game/client/entity/listener.cc @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: BSD-2-Clause +// Copyright (c) 2025 Kirill Dmitrievich +// File: listener.cc +// Description: OpenAL listener + #include "client/pch.hh" #include "client/entity/listener.hh" diff --git a/src/game/client/entity/listener.hh b/src/game/client/entity/listener.hh index 07d750f..d4391e2 100644 --- a/src/game/client/entity/listener.hh +++ b/src/game/client/entity/listener.hh @@ -1,6 +1,15 @@ +// SPDX-License-Identifier: BSD-2-Clause +// Copyright (c) 2025 Kirill Dmitrievich +// File: listener.hh +// Description: OpenAL listener + +#ifndef CLIENT_ENTITY_LISTENER_HH +#define CLIENT_ENTITY_LISTENER_HH #pragma once namespace listener { void update(void); } // namespace listener + +#endif diff --git a/src/game/client/entity/player_look.cc b/src/game/client/entity/player_look.cc index ad0f40e..c3b7dbd 100644 --- a/src/game/client/entity/player_look.cc +++ b/src/game/client/entity/player_look.cc @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: BSD-2-Clause +// Copyright (c) 2025 Kirill Dmitrievich +// File: player_look.cc +// Description: Client camera rotations + #include "client/pch.hh" #include "client/entity/player_look.hh" diff --git a/src/game/client/entity/player_look.hh b/src/game/client/entity/player_look.hh index 9d0f1dd..1bb0190 100644 --- a/src/game/client/entity/player_look.hh +++ b/src/game/client/entity/player_look.hh @@ -1,3 +1,10 @@ +// SPDX-License-Identifier: BSD-2-Clause +// Copyright (c) 2025 Kirill Dmitrievich +// File: player_look.hh +// Description: Client camera rotations + +#ifndef CLIENT_ENTITY_PLAYER_LOOK_HH +#define CLIENT_ENTITY_PLAYER_LOOK_HH #pragma once namespace player_look @@ -5,3 +12,5 @@ namespace player_look void init(void); void update_late(void); } // namespace player_look + +#endif diff --git a/src/game/client/entity/player_move.cc b/src/game/client/entity/player_move.cc index fe4e757..663258f 100644 --- a/src/game/client/entity/player_move.cc +++ b/src/game/client/entity/player_move.cc @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: BSD-2-Clause +// Copyright (c) 2025 Kirill Dmitrievich +// File: player_move.cc +// Description: Player movement + #include "client/pch.hh" #include "client/entity/player_move.hh" diff --git a/src/game/client/entity/player_move.hh b/src/game/client/entity/player_move.hh index 8516308..6e9fa44 100644 --- a/src/game/client/entity/player_move.hh +++ b/src/game/client/entity/player_move.hh @@ -1,3 +1,10 @@ +// SPDX-License-Identifier: BSD-2-Clause +// Copyright (c) 2025 Kirill Dmitrievich +// File: player_move.hh +// Description: Player movement + +#ifndef CLIENT_ENTITY_PLAYER_MOVE_HH +#define CLIENT_ENTITY_PLAYER_MOVE_HH #pragma once constexpr static float PMOVE_MAX_SPEED_AIR = 16.0f; @@ -13,3 +20,5 @@ void init(void); void fixed_update(void); void update_late(void); } // namespace player_move + +#endif diff --git a/src/game/client/entity/sound_emitter.cc b/src/game/client/entity/sound_emitter.cc index b0dbc6d..313da0b 100644 --- a/src/game/client/entity/sound_emitter.cc +++ b/src/game/client/entity/sound_emitter.cc @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: BSD-2-Clause +// Copyright (c) 2025 Kirill Dmitrievich +// File: sound_emitter.cc +// Description: Component for entities that make sounds + #include "client/pch.hh" #include "client/entity/sound_emitter.hh" diff --git a/src/game/client/entity/sound_emitter.hh b/src/game/client/entity/sound_emitter.hh index 6bc0846..b89c651 100644 --- a/src/game/client/entity/sound_emitter.hh +++ b/src/game/client/entity/sound_emitter.hh @@ -1,3 +1,10 @@ +// SPDX-License-Identifier: BSD-2-Clause +// Copyright (c) 2025 Kirill Dmitrievich +// File: sound_emitter.hh +// Description: Component for entities that make sounds + +#ifndef CLIENT_ENTITY_SOUND_EMITTER_HH +#define CLIENT_ENTITY_SOUND_EMITTER_HH #pragma once #include "core/resource/resource.hh" @@ -15,3 +22,5 @@ public: public: static void update(void); }; + +#endif |
