-
Notifications
You must be signed in to change notification settings - Fork 0
/
PlayerYellow.h
41 lines (34 loc) · 1.57 KB
/
PlayerYellow.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#pragma once
#include <SFML/Graphics.hpp>
class PlayerYellow
{
private:
sf::RectangleShape y1;
public:
PlayerYellow(float initialPositionx, float initialPositiony);
~PlayerYellow();
void draw(sf::RenderWindow& window, int diceno);
float getPositiony(int movex);
float getPositionx(int movex);
float getPosx();
float getPosy();
//void move(int);
float PlayerPositiony[58] = { 0.,900.,833.333,766.669, 700.,633.333,566.666,566.666,566.666,566.666,566.666,566.666,500.,433.333,433.333,433.333,433.333,433.333,433.333,
366.666,300.,233.333,166.667,100.,33.333,33.33,33.33,100.,166.667,233.333,300.,366.666,433.333,433.333,433.333,433.333,433.333,433.333,
500.,566.666,566.666,566.666,566.666,566.666,566.666,633.333,700.,766.669,833.33,900.,966.667,966.667,900.,833.333,766.669, 700.,633.333,566.666 };
float PlayerPositionx[58] = { 0.,433.333,433.333,433.333,433.333,433.333,
366.666,300.,233.333,166.667,100.,33.333,33.33,33.33,100.,166.667,233.333,300.,366.666,433.333,433.333,433.333,433.333,433.333,433.333,
500.,566.666,566.666,566.666,566.666,566.666,566.666,633.333,700.,766.669,833.33,900.,966.667,966.667 ,966.667,900,833.33,766.666,700.,
633.33,566.667,566.667 ,566.667 ,566.667 ,566.667 , 566.667,500.,500.,500.,500.,500.,500.,500. };
void setPosition(float diceno);
void resetPosition();
private:
int initialPosition_y = 0;
int initialPosition_x = 0;
float firstPositionx;
float firstPositiony;
//int selectedPlayer;
//int playerTurn
//int bluePosition[] = {};
//sf::RectangleShape y1(sf::Vector2f(100.0f, 100.0f));
};