|
1 | | -/* |
2 | | -** EPITECH PROJECT, 2020 |
3 | | -** DynamicLoader.hpp |
4 | | -** File description: |
5 | | -** header for DynamicLoader.c |
6 | | -*/ |
7 | | - |
8 | | -#pragma once |
9 | | - |
10 | | -#include <iostream> |
| 1 | +#include <string> |
11 | 2 |
|
12 | 3 | namespace arcade |
13 | 4 | { |
14 | 5 | class ITextModule |
15 | 6 | { |
16 | 7 | public: |
17 | 8 | virtual ~ITextModule() = default; |
| 9 | + |
18 | 10 | // USED ONLY IN WRAPPER |
19 | 11 | // MUST : return the text object to draw |
20 | 12 | virtual void *getText() = 0; |
21 | | - |
22 | 13 |
|
23 | 14 | // MUST: set the text value |
24 | 15 | virtual void setText(std::string text) = 0; |
25 | 16 |
|
26 | 17 | // MUST: Set the text position; |
27 | | - virtual void setPosition(int x, int y) = 0; |
| 18 | + virtual void setPosition(float x, float y) = 0; |
28 | 19 |
|
29 | 20 | // MUST: move the text |
30 | | - virtual void move(int x, int y) = 0; |
31 | | - |
| 21 | + virtual void move(float x, float y) = 0; |
32 | 22 |
|
33 | 23 | // ALL FILE TYPES MUST BE AT THE PATH SPECIFIED |
34 | | - // MUST: loads and set a text font |
35 | | - //ex SFML: |
| 24 | + // MUST: loads and set a text font |
| 25 | + //ex SFML: |
36 | 26 | // assetPath = ./Assets/Pacman/enemy/font |
37 | 27 | // real path = ./Assets/Pacman/enmey/font.ttf |
38 | 28 | virtual void setFont(std::string font) = 0; |
39 | 29 |
|
40 | 30 | // MUST: Set the text color |
41 | | - virtual void setColor(unsigned char r, unsigned char g, unsigned char b) = 0; |
| 31 | + virtual void |
| 32 | + setColor(unsigned char r, unsigned char g, unsigned char b) = 0; |
42 | 33 |
|
43 | 34 | // MUST: Set the text size |
44 | 35 | virtual void setSize(int size) = 0; |
|
0 commit comments