-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:saantiaguilera/fiuba-taller-I-meg…
…aman
- Loading branch information
Showing
23 changed files
with
957 additions
and
969 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/* | ||
* MapWindowValidator.cpp | ||
* | ||
* Created on: Jul 2, 2016 | ||
* Author: santi | ||
*/ | ||
|
||
#include "editor_MapWindowValidator.h" | ||
|
||
#include <iostream> | ||
|
||
MapWindowValidator::MapWindowValidator() { | ||
isMegamanSet = true; | ||
isBossSet = true; | ||
isBosschamberSet = true; | ||
} | ||
|
||
MapWindowValidator::~MapWindowValidator() { | ||
// TODO Auto-generated destructor stub | ||
} | ||
|
||
void MapWindowValidator::setMegaman() { | ||
isMegamanSet = true; | ||
} | ||
|
||
void MapWindowValidator::setBoss() { | ||
isBossSet = true; | ||
} | ||
|
||
void MapWindowValidator::setBosschamber() { | ||
std::cout << "set boss chamber" << std::boolalpha << isBosschamberSet << std::endl; | ||
isBosschamberSet = true; | ||
std::cout << "did set boss chamber" << std::boolalpha << isBosschamberSet << std::endl; | ||
} | ||
|
||
void MapWindowValidator::removeMegaman() { | ||
isMegamanSet = false; | ||
} | ||
|
||
void MapWindowValidator::removeBoss() { | ||
isBossSet = false; | ||
} | ||
|
||
void MapWindowValidator::removeBosschamber() { | ||
std::cout << "remove boss chamber" << std::boolalpha << isBosschamberSet << std::endl; | ||
isBosschamberSet = false; | ||
std::cout << "did remove boss chamber" << std::boolalpha << isBosschamberSet << std::endl; | ||
} | ||
|
||
bool MapWindowValidator::didSetMegaman() { | ||
return isMegamanSet; | ||
} | ||
|
||
bool MapWindowValidator::didSetBoss() { | ||
return isBossSet; | ||
} | ||
bool MapWindowValidator::didSetBosschamber() { | ||
return isBosschamberSet; | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* MapWindowValidator.h | ||
* | ||
* Created on: Jul 2, 2016 | ||
* Author: santi | ||
*/ | ||
|
||
#ifndef EDITOR_MODELS_EDITOR_MAPWINDOWVALIDATOR_H_ | ||
#define EDITOR_MODELS_EDITOR_MAPWINDOWVALIDATOR_H_ | ||
|
||
class MapWindowValidator { | ||
public: | ||
MapWindowValidator(); | ||
virtual ~MapWindowValidator(); | ||
void setMegaman(); | ||
void setBoss(); | ||
void setBosschamber(); | ||
void removeMegaman(); | ||
void removeBoss(); | ||
void removeBosschamber(); | ||
|
||
bool didSetMegaman(); | ||
bool didSetBoss(); | ||
bool didSetBosschamber(); | ||
|
||
private: | ||
bool isMegamanSet; | ||
bool isBossSet; | ||
bool isBosschamberSet; | ||
}; | ||
|
||
#endif /* EDITOR_MODELS_EDITOR_MAPWINDOWVALIDATOR_H_ */ |
This file contains 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
Oops, something went wrong.