- "Info" ara es una unitat simple
This commit is contained in:
@@ -6,9 +6,10 @@
|
||||
#include "jsound.h"
|
||||
#include <stdlib.h>
|
||||
#include <string>
|
||||
#include "info.h"
|
||||
|
||||
ModuleStaticScreen::ModuleStaticScreen() {
|
||||
|
||||
ModuleStaticScreen::ModuleStaticScreen( Info* info ) {
|
||||
this->info = info;
|
||||
}
|
||||
|
||||
ModuleStaticScreen::~ModuleStaticScreen(void) {
|
||||
@@ -16,7 +17,7 @@ ModuleStaticScreen::~ModuleStaticScreen(void) {
|
||||
|
||||
int ModuleStaticScreen::Go() {
|
||||
|
||||
switch( this->info->estat_joc ) {
|
||||
switch( info::estat_joc ) {
|
||||
case ESTAT_ICEKAS:
|
||||
doIcekas();
|
||||
break;
|
||||
@@ -30,7 +31,7 @@ int ModuleStaticScreen::Go() {
|
||||
if( JG_Quitting() ) {
|
||||
return ESTAT_EIXIR;
|
||||
} else {
|
||||
switch (this->info->estat_joc) {
|
||||
switch (info::estat_joc) {
|
||||
case ESTAT_ICEKAS: return ESTAT_LOGO; break;
|
||||
case ESTAT_LOGO: return ESTAT_MENU; break;
|
||||
}
|
||||
@@ -38,10 +39,6 @@ int ModuleStaticScreen::Go() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
const int minim( const int a, const int b ) {
|
||||
if( b < a ) { return b; } else { return a; }
|
||||
}
|
||||
|
||||
void ModuleStaticScreen::doIcekas() {
|
||||
|
||||
bool eixir = false;
|
||||
|
||||
Reference in New Issue
Block a user