]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/dummy.cpp
Update #includes that have been renamed, and remove stray ones
[r2c2.git] / source / libr2c2 / dummy.cpp
index 814dce44a99818f78de28f7aa4f4c5c836b2bc8d..99e4a5e3d189d952a1ad7a5978494fb350e17330 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of R²C²
-Copyright © 2010  Mikkosoft Productions, Mikko Rasa
-Distributed under the GPL
-*/
-
 #include "dummy.h"
 
 using namespace std;
@@ -33,12 +26,12 @@ unsigned Dummy::get_protocol_speed_steps(const string &) const
        return 0;
 }
 
-void Dummy::add_turnout(unsigned addr)
+void Dummy::add_turnout(unsigned addr, const TrackType &)
 {
        turnouts[addr];
 }
 
-void Dummy::set_turnout(unsigned addr, bool state)
+void Dummy::set_turnout(unsigned addr, unsigned state)
 {
        if(turnouts[addr]!=state)
        {
@@ -47,9 +40,9 @@ void Dummy::set_turnout(unsigned addr, bool state)
        }
 }
 
-bool Dummy::get_turnout(unsigned addr) const
+unsigned Dummy::get_turnout(unsigned addr) const
 {
-       map<unsigned, bool>::const_iterator i = turnouts.find(addr);
+       map<unsigned, unsigned>::const_iterator i = turnouts.find(addr);
        if(i!=turnouts.end())
                return i->second;
        return false;