X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibmarklin%2Flocomotive.cpp;h=87effa04e8e35175152bc5de2e88950532a5d55c;hb=3e9c210ddc036cd015228504cc0803c909e27f84;hp=0de0110f3cafd673ec55347ec3fb71c9e987cc74;hpb=1d735b80482317fd930eb47ca255ab9f1f120a7d;p=r2c2.git diff --git a/source/libmarklin/locomotive.cpp b/source/libmarklin/locomotive.cpp index 0de0110..87effa0 100644 --- a/source/libmarklin/locomotive.cpp +++ b/source/libmarklin/locomotive.cpp @@ -1,3 +1,10 @@ +/* $Id$ + +This file is part of the MSP Märklin suite +Copyright © 2006-2008 Mikkosoft Productions, Mikko Rasa +Distributed under the GPL +*/ + #include #include #include "command.h" @@ -10,7 +17,8 @@ using namespace Msp; namespace Marklin { -Locomotive::Locomotive(Control &c, unsigned a): +Locomotive::Locomotive(const LocoType &t, Control &c, unsigned a): + type(t), control(c), addr(a), speed(0), @@ -56,6 +64,8 @@ void Locomotive::set_function(unsigned func, bool state) funcs&=~(1<>i)&1); } }