Commit Graph

19 Commits

Author SHA1 Message Date
Torsten Schulz (local)
864d86aa09 Refactor chat system: Introduce ChatRoom and ChatUser classes
- Created ChatRoom class to manage chat room functionalities, including user management, message handling, and game mechanics.
- Developed ChatUser class to represent individual users, handling user-specific actions and interactions within chat rooms.
- Implemented a Config class for loading configuration settings from a JSON file.
- Established a Server class to manage connections, handle requests, and facilitate communication between users and chat rooms.
- Introduced a Database class for database interactions, utilizing PostgreSQL for user and room data management.
- Added utility functions in the Base class for JSON handling and socket communication.
- Created Object classes for Room and User to encapsulate their properties and behaviors.
- Updated main function to initialize server and load chat rooms from configuration.
2025-08-11 16:07:15 +02:00
Torsten Schulz (local)
6ecdbda9de Refactor chat room implementation
- Renamed Room class to ChatRoom and updated all references accordingly.
- Removed the old room.cpp and room.h files.
- Updated CMakeLists.txt to include chat_room.cpp instead of room.cpp.
- Modified ChatUser class to use shared_ptr<ChatRoom> instead of shared_ptr<Room>.
- Updated Server class to create instances of ChatRoom instead of Room.
- Removed User class and its associated files, integrating its functionality into ChatUser.
- Ensured all relevant includes and dependencies are updated to reflect the new class structure.
2025-08-11 15:03:11 +02:00
Torsten Schulz (local)
b81f2de10f Refactor project structure: replace User class with ChatUser, integrate Database class, and update CMake configuration for new files 2025-08-11 14:48:45 +02:00
Torsten Schulz (local)
89956bd01a Refactor Server class: move createRooms call outside constructor and update access modifier for _socket 2025-08-11 11:45:09 +02:00
Torsten Schulz
f44d780537 Update CMake configuration and refactor code to use smart pointers for memory management 2025-08-11 11:15:54 +02:00
Torsten Schulz
ba6b788075 CMake instead of qmake 2020-08-07 10:18:51 +02:00
Torsten Schulz
0007ea7a81 changed c++ version to c++20 2020-06-17 14:33:08 +02:00
Torsten Schulz
626b69e149 changed compiler 2017-11-28 22:42:37 +01:00
Torsten Schulz
c0a8fe55f8 Test 2017-10-12 15:00:18 +02:00
Torsten Schulz
57ec9c2cb6 Code refactoring 2017-10-12 14:49:07 +02:00
Torsten Schulz
520f3106e3 Added user list for room 2017-08-04 14:47:55 +02:00
Torsten Schulz
48e2ff3885 Removed debug output 2017-07-28 21:35:31 +02:00
Torsten Schulz
984f39479f Added some functionality 2017-07-28 20:14:51 +02:00
Torsten Schulz
b9d2b3e347 Room change, room list with flags 2017-07-24 23:41:12 +02:00
Torsten Schulz
105232a9e3 Added dice, added check for room access 2017-07-22 22:24:38 +02:00
Torsten Schulz
b5b4c94f65 Receive and send messages 2017-07-21 21:49:19 +02:00
Torsten Schulz
922ee7ac12 Ignore for git 2017-07-18 23:52:31 +02:00
Torsten Schulz
26ab29859d Initial submit 2017-07-18 23:51:56 +02:00
Torsten Schulz
071d70ecf6 Initial submit 2017-07-18 23:49:40 +02:00