generated from sigonasr2/CPlusPlusProjectTemplate
Party member stats initiated
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
parent
dbc07b4eac
commit
3821e87585
8
main.cpp
8
main.cpp
@ -334,6 +334,7 @@ public:
|
||||
int OBJ_DISPLAY_OFFSET = 0;
|
||||
bool GAME_FLAGS[128]={};
|
||||
std::array<Object*,4> PARTY_MEMBER_OBJ;
|
||||
std::array<Entity*,7> PARTY_MEMBER_STATS;
|
||||
bool messageBoxVisible=false;
|
||||
std::string messageBoxText="";
|
||||
std::string targetText="";
|
||||
@ -379,6 +380,7 @@ public:
|
||||
|
||||
EnableLayer(layer::COLLISION,false);
|
||||
|
||||
SetupPartyMemberStats();
|
||||
SetupMoveList();
|
||||
SetupAnimations();
|
||||
SetupObjectInfo();
|
||||
@ -1199,6 +1201,12 @@ goes on a very long time, I hope you can understand this is only for testing pur
|
||||
return newObj;
|
||||
}
|
||||
|
||||
void SetupPartyMemberStats() {
|
||||
for (int i=0;i<7;i++) {
|
||||
PARTY_MEMBER_STATS[i]=new Entity(120,120,8,{0,0,0,0},4,{MOVELIST[BattleMoveName::TESTMOVE1]});
|
||||
}
|
||||
}
|
||||
|
||||
void SetupMoveList() {
|
||||
MOVELIST[BattleMoveName::TESTMOVE1]=new Battle::Move("Test Move 1",30,5,{0,0,0,0});
|
||||
MOVELIST[BattleMoveName::TESTMOVE2]=new Battle::Move("Test Move 2",40,10,{0,0,0,0});
|
||||
|
Loading…
x
Reference in New Issue
Block a user