const QPalette& mpal = table->palette();
QColor mainColor = mpal.color(QPalette::Normal, QPalette::Base);
QColor altColor = mpal.color(QPalette::Normal, QPalette::AlternateBase);
mpal.setColor(QPalette::Normal, QPalette::Base, altColor);
mpal.setColor(QPalette::Normal, QPalette::AlternateBase, mainColor);
table->setPalette(mpal);
class Player : public Entity
{
public:
bool isDead;
}
class Player
{
public:
Entity entity;
bool isDead;
}
struct PlayerInfo
{
bool isDead;
}
std::map<const Entity*, PlayerInfo> playerInfo;