This repository has been archived on 2026-04-30. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Tortuga/client/player_manager.hpp
T

27 lines
452 B
C++

#ifndef PLAYERMANAGER_HPP_
#define PLAYERMANAGER_HPP_
#include "player.hpp"
#include <map>
class PlayerManager {
public:
PlayerManager();
~PlayerManager();
Player* New(int index, SDL_Surface* avatarSheet);
Player* Get(int index);
void Delete(int index);
void UpdateAll(double delta);
void DrawAllTo(SDL_Surface* dest);
void DeleteAll();
Player* operator[](int i) { return Get(i); }
private:
std::map<int, Player*> playerMap;
};
#endif