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;
}
}
|