- Introduced `Paddle` class for player controls in the SFML project. - Added `main.cpp` to demonstrate basic paddle movement and rendering. - Created reusable templates (`templates.h`) and inline class (`inlines.h`) in the `misc` module. - Defined `structs`, `enums`, `unions` in `misc/structs_enums_unions.h`. - Updated CMake configuration for the `sfml` and `misc` modules. - Included new assets for backgrounds, characters, enemies, and tiles.
16 lines
286 B
C++
16 lines
286 B
C++
//
|
|
// Created by David Hackbarth on 27.02.26.
|
|
//
|
|
|
|
#ifndef MISC_INLINES_H
|
|
#define MISC_INLINES_H
|
|
|
|
class Value {
|
|
public:
|
|
Value(int val) : value(val) {} // implicit inline
|
|
int getValue() const { return value; } // implicit inline
|
|
private:
|
|
int value;
|
|
};
|
|
|
|
#endif //MISC_INLINES_H
|