|
|
|
#include "../entity.h"
|
|
|
|
#include "../item.h"
|
|
|
|
#include "../layers.h"
|
|
|
|
#include <string>
|
|
|
|
#define OLC_PGE_APPLICATION
|
|
|
|
#include "../pixelGameEngine.h"
|
|
|
|
#define OLC_PGEX_SPLASHSCREEN
|
|
|
|
#include "../splash.h"
|
|
|
|
#define OLC_SOUNDWAVE
|
|
|
|
#include "../defines.h"
|
|
|
|
#include "../soundwaveEngine.h"
|
|
|
|
#include "../tiles.h"
|
|
|
|
#include "../references.h"
|
|
|
|
#include "../states.h"
|
|
|
|
#include "../flags.h"
|
|
|
|
#include <assert.h>
|
|
|
|
#include "../cutscene.h"
|
|
|
|
#include "../encounters.h"
|
|
|
|
#include "../particle.h"
|
|
|
|
#include "../effect.h"
|
|
|
|
#include "../battleproperty.h"
|
|
|
|
#include "test.h"
|
|
|
|
#include "../SeasonI.h"
|
|
|
|
|
|
|
|
extern std::array<Entity*,7> PARTY_MEMBER_STATS;
|
|
|
|
extern std::map<BattleMoveName,Battle::Move*>MOVELIST;
|
|
|
|
|
|
|
|
int testCount=0;
|
|
|
|
|
|
|
|
void Test(std::string name,bool success) {
|
|
|
|
testCount++;
|
|
|
|
std::cout<<"Test ("<<testCount<<") "<<name<<"..."<<std::endl;
|
|
|
|
assert(success);
|
|
|
|
std::cout<<" Passed"<<std::endl;
|
|
|
|
};
|
|
|
|
|
|
|
|
bool SeasonI::OnUserCreate(){
|
|
|
|
|
|
|
|
SetupPartyMemberStats();
|
|
|
|
Entity::stats_t defaults{{HP:120,maxHP:120,PP:30,maxPP:30,baseAtk:8,speed:8,resistances:{0,0,0,0}}};
|
|
|
|
Test("Party Members get initialized with correct defaults.",
|
|
|
|
PARTY_MEMBER_STATS[0]->stats==defaults);
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool SeasonI::OnUserUpdate(float fElapsedTime)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
SeasonI demo;
|
|
|
|
if (demo.Construct(WIDTH, HEIGHT, 4, 4))
|
|
|
|
demo.Start();
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|