This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Game.h" | |
Game::Game(const sf::RenderWindow& window) : mwindow(window) | |
{ | |
if (!mapTexture.loadFromFile("Images/Map.png")) | |
{ | |
std::cerr << "Error loading map" << std::endl; | |
std::cin.get(); | |
} | |
else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Blackboard.h" | |
Blackboard::Blackboard(const Blackboard * copy) | |
{ | |
*this = *copy; | |
} | |
Blackboard& Blackboard::operator=(const Blackboard& copy) { | |
if (© == this) return *this; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Returns an array of product attributes, each with a name and an array of values. | |
public function get_attribute_list() { | |
// Assumes $this is a WC_Product object. | |
$attributes = $this->get_attributes(); | |
$spec_items = array(); | |
foreach ($attributes as $attribute) { | |
array_push($spec_items, array( | |
'name' => wc_attribute_label($attribute->get_name()), | |
'values' => $this->get_attribute_term_names($attribute) | |
)); |