File: interval.cc

package info (click to toggle)
enemylines7 0.6-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,640 kB
  • sloc: cpp: 21,756; makefile: 24
file content (35 lines) | stat: -rw-r--r-- 383 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35

#include "interval.h"

namespace PRJID {


Interval::Interval(unsigned int l) {
	length=l;
	last=0;
	ticks=0;
}

Interval::~Interval() {
}


void Interval::tick(unsigned int t) {
	ticks+=t;

}

bool Interval::check() {
	if (ticks>last+length) {
		last+=length;
		return true;
	}
	return false;
}


std::ostream& operator<<(std::ostream&s, Interval sk) {
	return s;
}

} //namespace