Ejemplo n.º 1
0
// operator overloading
PBASFeature& PBASFeature::operator= (const PBASFeature& other)
{
	if (this != &other)
	{
		copyOther(other);
	}
	return *this;
}
Ejemplo n.º 2
0
PBASFeature::PBASFeature(const PBASFeature& other)
{
	copyOther(other);
}
Ejemplo n.º 3
0
GameState& GameState::operator= (const GameState &other) {
    if (this != &other) {
        copyOther(other);
    }
    return *this;
}
Ejemplo n.º 4
0
GameState::GameState(const GameState& g) {
    this->numberOfRobots = g.numberOfRobots;
    this->hero = g.hero;
    copyOther(g);
}