File: bomb.d

package info (click to toggle)
projectl 1.001.dfsg1-7
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,720 kB
  • ctags: 5
  • sloc: xml: 57; makefile: 32
file content (44 lines) | stat: -rw-r--r-- 969 bytes parent folder | download | duplicates (3)
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
36
37
38
39
40
41
42
43
44
module br.bomb;
private import util.parts;
private import util.shape;
private import util.vector;
private import util.matrix;
private import util.log;
private import util.particle;
private import util.basis;

private import br.gamemanager;
private import br.blast;
private import std.math;
private import SDL_mixer;
private import br.sound;

public class Bomb:Parts{
	public this(){
		collisionManager.add(this ,collisionManager.kind.BOMB ,1);
		drawing = POLYGON;
		R = 1.0;G=1.0;B=1.0;alpha=1.0;
		shape = new SH_Sphere(1.0 ,32);
		size = 0.0;
		collisionRange = 50.0;
		pos = new Vector3(0 ,0 ,-800);
	}
	public override void  move(){
		super.move();
		size += 2.0;
		collisionRange += 2.0;
	}
	public override void destroy(){
		super.destroy();
	}
	public override void reportCollision(int kind){
		
	}
	public override void vanish(){
 		
		super.vanish();
	}
	public override bool inCollisionRange(){
		return true;
	}
}