// vim:syntax=javascript

class EnemyInit {
    private var _pos : Point;
    private var _dir : Number;
    private var _type : Function; // type is the class, technically a function

    function get pos() : Point {return _pos;}
    function get dir() : Number {return _dir;}
    function get type() : Function {return _type;}

    function EnemyInit(ppos : Point, pdir : Number, ptype : Function) {
        _pos = ppos;
        _dir = pdir;
        _type = ptype;
    }

    function toString() : String {
        return "EnemyInit: pos=" + _pos + " dir=" + _dir + " type=" + _type;
    }
}
