File: bullettarget.d

package info (click to toggle)
tumiki-fighters 0.2.dfsg1-9
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 7,080 kB
  • sloc: xml: 1,767; makefile: 28
file content (30 lines) | stat: -rw-r--r-- 519 bytes parent folder | download | duplicates (4)
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
/*
 * $Id: bullettarget.d,v 1.2 2004/05/14 14:35:37 kenta Exp $
 *
 * Copyright 2004 Kenta Cho. All rights reserved.
 */
module abagames.tf.bullettarget;

private import abagames.util.vector;

/**
 * Target that is aimed by bullets.
 */
public interface BulletTarget {
 public:
  Vector getTargetPos();
}

public class VirtualBulletTarget: BulletTarget {
 public:
  Vector pos;
 private:

  public this() {
    pos = new Vector;
  }

  public Vector getTargetPos() {
    return pos;
  }
}