Exemplo n.º 1
0
void deleteMonster(monster_t* const monster){
	if( monster->object ) deleteObject(monster->object);
	if( monster->inventory ) deleteInventory(monster->inventory);
	if( monster->combat ) deleteCombat(monster->combat);
	if( monster->equipment ) deleteEquipmentSlots(monster->equipment);
	if( monster->skills ) deleteSkillSlots(monster->skills);
	if( monster->buff ) deleteBuff(monster->buff);
	free(monster);
}
Exemplo n.º 2
0
void EditInventory::decreaseInventory(const Inventory &inventory) {
    deleteInventory(inventory);
}