123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- #ifndef JEU_H_INCLUDED
- #define JEU_H_INCLUDED
- #include <SDL.h>
- #include "Liner.h"
- #include "Collisions.h"
- #include "Power.h"
- #include "TextRender.h"
- #include "Starter.h"
- #include "intToStr.h"
- #include <fstream>
- #define ROUGE 128, 0, 0
- #define BLEU 0, 0, 128
- #define VERT 0, 128, 0
- #define JAUNE 128, 128, 0
- #define ROSE 128, 0, 128
- #define CYAN 0, 128, 128
- #define ORANGE 128, 64, 0
- #define VIOLET 64, 0, 60
- #define GRIS 64, 64, 64
- #define MARINE 0, 0, 64
- #define PLUME 32, 64, 128
- #define MARRON 64, 32, 0
- struct Config
- {
- int xSize;
- int ySize;
- int nbJoueurs;
- bool pleinEcran;
- int nbPouvoirs;
- std::string pseudo[12];
- int cmd[12][3];
- };
- struct Score
- {
- Uint32 frag[12];
- Uint32 mort[12];
- };
- int jeuMulti( SDL_Surface* screen, Config settings );
- Config readConfig();
- void updateScore( Score* tabScore, Liner** hyperliner, int nbJoueurs );
- void displayScore( Score* tabScore, TextRender* texter, int nbJoueurs, SDL_Surface* screen, std::string pseudo[4] );
- void clearScore ( Score* tabScore );
- #endif
|