stratgame

diff src/part.cc @ 3:8d95187cb3ee

foo
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 23 May 2012 17:10:46 +0300
parents 369b51c9e4a8
children
line diff
     1.1 --- a/src/part.cc	Wed May 23 07:25:43 2012 +0300
     1.2 +++ b/src/part.cc	Wed May 23 17:10:46 2012 +0300
     1.3 @@ -13,6 +13,16 @@
     1.4  	return true;
     1.5  }
     1.6  
     1.7 +void Part::start()
     1.8 +{
     1.9 +	if(cur_part) {
    1.10 +		cur_part->stop();
    1.11 +	}
    1.12 +	cur_part = this;
    1.13 +}
    1.14 +
    1.15 +void Part::stop() {}
    1.16 +
    1.17  void Part::update(unsigned long msec)
    1.18  {
    1.19  	current_time = msec;