The open source repository for the action RPG game in development by Sig Productions titled 'Adventures in Lestoria'! https://forums.lestoria.net
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AdventuresInLestoria/Crawler/Monster.h

45 lines
707 B

#include "olcPixelGameEngine.h"
enum MonsterStrategy{
RUN_TOWARDS,
SHOOT_AFAR
};
struct MonsterData{
private:
int hp;
int atk;
float moveSpd;//1.0=100%
float size;
MonsterStrategy strategy;
public:
MonsterData(){};
MonsterData(int hp,int atk,float moveSpd=1.0f,float size=1.0f,MonsterStrategy strategy=RUN_TOWARDS):
hp(hp),atk(atk),moveSpd(moveSpd),size(size),strategy(strategy){}
int GetHealth(){
return hp;
}
int GetAttack(){
return atk;
}
float GetMoveSpdMult(){
return moveSpd;
}
float GetSizeMult(){
return size;
}
MonsterStrategy GetAIStrategy(){
return strategy;
}
};
enum MonsterName{
SLIME_GREEN,
SLIME_BLUE,
SLIME_RED,
SLIME_YELLOW,
};
struct Monster{
};