Educational Game Platform
Public Slots | Public Member Functions | Public Attributes | List of all members
gameScene_1_dice Class Reference
Inheritance diagram for gameScene_1_dice:

Public Slots

void update ()
 gameScene_1_dice::update More...
 
void setup (int value)
 gameScene_1_dice::setup More...
 

Public Member Functions

 gameScene_1_dice (QObject *parent=0)
 

Public Attributes

int * id
 ID of the dice ( dice1/dice2)
 
int * diceVal
 int denoting current value of dice
 

Member Function Documentation

◆ setup

void gameScene_1_dice::setup ( int  value)
slot

gameScene_1_dice::setup

Parameters
value: id of dice (either 1 or 2)

Setup a dice instance

◆ update

void gameScene_1_dice::update ( )
slot

gameScene_1_dice::update

Roll the dice and update its value randomly


The documentation for this class was generated from the following files: