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
|
#include "GameLoop.h"
#include "Rolling.h"
#include <iostream>
GameLoop::GameLoop()
{
//GameLoop::GameLoop() : TileText{"GO", "MEDITER-RANEAN AVENUE", "COMMUNUTY CHEST", "BALTIC AVENUE", "INCOME TAX", "READING RAILROAD", "ORIENTAL AVENUE", "CHANCE", "VERMONT AVENUE", "CONNECTICUT", "JAIL", "ST. CHARLES PLACE", "ELECTRIC COMPANY", "STATES AVENUE",
// "VIGINIA AVENUE", "PENNSYLVANIA RAILROAD", "ST. JAMES PLACE", "COMMUNUTY CHEST", "TENNESSEE AVENUE", "NEW YORK AVENUE", "FREE PARKING", "KENTUCKY AVENUE", "CHANCE", "INDIANA AVENUE", "ILLINOIS AVENUE", "B. & O. RAILROAD", "ATLANTIC AVENUE",
// "VENTNOR AVENUE", "WATER WORKS", "MARVIN GARDENS", "GO TO JAIL", "PACIFIC AVENUE", "NORTH CAROLINA AVENUE", "COMMUNUTY CHEST", "PENNSYLVANIA AVENUE", "SHORT LINE", "CHANCE", "PARK PLACE", "LUXURY TAX", "BOARD WALK"};
}
void GameLoop::Loop(int Loops, int * PP){
//&playersPositions = PP;
while(Loops > 0){
for(int p = 0; p < 4; p++){
//*PP[p] += roll.Roll(2,6);
//Tiles[*PP[p]]++;
}
Loops--;
}
}
GameLoop::~GameLoop()
{
//dtor
}
|