mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
TITANIC: Implemented fan game classes
This commit is contained in:
@@ -24,6 +24,10 @@
|
||||
|
||||
namespace Titanic {
|
||||
|
||||
BEGIN_MESSAGE_MAP(CFanDecrease, CGameObject)
|
||||
ON_MESSAGE(MouseButtonDownMsg)
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
void CFanDecrease::save(SimpleFile *file, int indent) {
|
||||
file->writeNumberLine(1, indent);
|
||||
CGameObject::save(file, indent);
|
||||
@@ -34,4 +38,11 @@ void CFanDecrease::load(SimpleFile *file) {
|
||||
CGameObject::load(file);
|
||||
}
|
||||
|
||||
bool CFanDecrease::MouseButtonDownMsg(CMouseButtonDownMsg *msg) {
|
||||
CStatusChangeMsg statusMsg;
|
||||
statusMsg._newStatus = 2;
|
||||
statusMsg.execute("FanController");
|
||||
return true;
|
||||
}
|
||||
|
||||
} // End of namespace Titanic
|
||||
|
||||
Reference in New Issue
Block a user