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
2013-05-02 22:45:30 +10:00

27 lines
449 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(int delta);
void DrawAllTo(SDL_Surface* dest);
void DeleteAll();
Player* operator[](int i) { return Get(i); }
private:
std::map<int, Player*> playerMap;
};
#endif