- "Info" ara es una unitat simple

This commit is contained in:
2024-01-29 14:52:53 +01:00
parent aca0f646b3
commit 80234e195e
11 changed files with 56 additions and 62 deletions

View File

@@ -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;