class Agent { constructor(x, y){ this.xField = x; this.yField = y; } getid(){ return this.xField + "-" + this.yField; } } export default Agent;