コード例 #1
0
ファイル: PBASFeature.cpp プロジェクト: anhDean/PBAS-
// operator overloading
PBASFeature& PBASFeature::operator= (const PBASFeature& other)
{
	if (this != &other)
	{
		copyOther(other);
	}
	return *this;
}
コード例 #2
0
ファイル: PBASFeature.cpp プロジェクト: anhDean/PBAS-
PBASFeature::PBASFeature(const PBASFeature& other)
{
	copyOther(other);
}
コード例 #3
0
ファイル: GameState.cpp プロジェクト: argillander/TDDD86
GameState& GameState::operator= (const GameState &other) {
    if (this != &other) {
        copyOther(other);
    }
    return *this;
}
コード例 #4
0
ファイル: GameState.cpp プロジェクト: argillander/TDDD86
GameState::GameState(const GameState& g) {
    this->numberOfRobots = g.numberOfRobots;
    this->hero = g.hero;
    copyOther(g);
}