#include "entity.h" #include "object.h" extern std::array PARTY_MEMBER_NAMES; std::ostream&operator<<(std::ostream &os,Entity&ent){ os<< ent.GetHP()<<" "<< ent.stats.maxHP<<" "<< PARTY_MEMBER_NAMES[ent.partyMemberID]<<" "<< ent.GetPP()<<" "<< ent.stats.maxPP<<" "<< ent.stats.baseAtk<<" "<< ent.stats.speed<<" "<< ent.stats.resistances.size()<<" "; for (int i=0;iid<<" "; } os<::iterator it=ent.statusEffects.begin();it!=ent.statusEffects.end();++it) { os<<(int)it->first<<" "<second<<" "; } os<id<<" "; } else { os<<-1<<" "; } } if (ent.obj!=nullptr) { os<GetPos().x<<" "<GetPos().y<<" "; } else { os<<-999<<" "<<-999<<" "; } return os; }