refactor: JD8_* a namespace Jd8::
This commit is contained in:
+14
-14
@@ -1,6 +1,6 @@
|
||||
#include "game/marcador.hpp"
|
||||
|
||||
Marcador::Marcador(JD8_Surface gfx, Prota* sam) {
|
||||
Marcador::Marcador(Jd8::Surface gfx, Prota* sam) {
|
||||
this->gfx = gfx;
|
||||
this->sam = sam;
|
||||
}
|
||||
@@ -16,46 +16,46 @@ void Marcador::draw() {
|
||||
this->pintaNumero(163, 2, info::ctx.diners % 10);
|
||||
|
||||
if (this->sam->pergami) {
|
||||
JD8_BlitCK(190, 1, this->gfx, 209, 185, 15, 14, 255);
|
||||
Jd8::blitCK(190, 1, this->gfx, 209, 185, 15, 14, 255);
|
||||
}
|
||||
|
||||
JD8_BlitCK(271, 1, this->gfx, 0, 20, 15, info::ctx.vida * 3, 255);
|
||||
Jd8::blitCK(271, 1, this->gfx, 0, 20, 15, info::ctx.vida * 3, 255);
|
||||
if (info::ctx.vida < 5) {
|
||||
JD8_BlitCK(271, 1 + (info::ctx.vida * 3), this->gfx, 75, 20, 15, 15 - (info::ctx.vida * 3), 255);
|
||||
Jd8::blitCK(271, 1 + (info::ctx.vida * 3), this->gfx, 75, 20, 15, 15 - (info::ctx.vida * 3), 255);
|
||||
}
|
||||
}
|
||||
|
||||
void Marcador::pintaNumero(Uint16 x, Uint16 y, Uint8 num) {
|
||||
switch (num) {
|
||||
case 0:
|
||||
JD8_BlitCK(x, y, this->gfx, 141, 193, 10, 7, 255);
|
||||
Jd8::blitCK(x, y, this->gfx, 141, 193, 10, 7, 255);
|
||||
break;
|
||||
case 1:
|
||||
JD8_BlitCK(x, y, this->gfx, 100, 185, 10, 7, 255);
|
||||
Jd8::blitCK(x, y, this->gfx, 100, 185, 10, 7, 255);
|
||||
break;
|
||||
case 2:
|
||||
JD8_BlitCK(x, y, this->gfx, 110, 185, 10, 7, 255);
|
||||
Jd8::blitCK(x, y, this->gfx, 110, 185, 10, 7, 255);
|
||||
break;
|
||||
case 3:
|
||||
JD8_BlitCK(x, y, this->gfx, 120, 185, 10, 7, 255);
|
||||
Jd8::blitCK(x, y, this->gfx, 120, 185, 10, 7, 255);
|
||||
break;
|
||||
case 4:
|
||||
JD8_BlitCK(x, y, this->gfx, 130, 185, 10, 7, 255);
|
||||
Jd8::blitCK(x, y, this->gfx, 130, 185, 10, 7, 255);
|
||||
break;
|
||||
case 5:
|
||||
JD8_BlitCK(x, y, this->gfx, 140, 185, 10, 7, 255);
|
||||
Jd8::blitCK(x, y, this->gfx, 140, 185, 10, 7, 255);
|
||||
break;
|
||||
case 6:
|
||||
JD8_BlitCK(x, y, this->gfx, 101, 193, 10, 7, 255);
|
||||
Jd8::blitCK(x, y, this->gfx, 101, 193, 10, 7, 255);
|
||||
break;
|
||||
case 7:
|
||||
JD8_BlitCK(x, y, this->gfx, 111, 193, 10, 7, 255);
|
||||
Jd8::blitCK(x, y, this->gfx, 111, 193, 10, 7, 255);
|
||||
break;
|
||||
case 8:
|
||||
JD8_BlitCK(x, y, this->gfx, 121, 193, 10, 7, 255);
|
||||
Jd8::blitCK(x, y, this->gfx, 121, 193, 10, 7, 255);
|
||||
break;
|
||||
case 9:
|
||||
JD8_BlitCK(x, y, this->gfx, 131, 193, 10, 7, 255);
|
||||
Jd8::blitCK(x, y, this->gfx, 131, 193, 10, 7, 255);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user