12 lines
165 B
JavaScript
12 lines
165 B
JavaScript
class Agent {
|
|
constructor(x, y){
|
|
this.xField = x;
|
|
this.yField = y;
|
|
}
|
|
|
|
getid(){
|
|
return this.xField + "-" + this.yField;
|
|
}
|
|
}
|
|
|
|
export default Agent; |