2
0
forked from s444420/AL-2020

Stworzenie agenta i jego okrojonego ruchu

This commit is contained in:
Tomek 2020-04-06 19:24:15 +02:00
parent 5358e809ab
commit 41d8e99aeb
4 changed files with 0 additions and 44 deletions

View File

@ -1,14 +0,0 @@
class Field {
constructor(x, y, isEmpty) {
this.xField = x;
this.yField = y;
this.isFieldEmpty = isEmpty;
}
getCoordinates(){
return this.xField + this.yField;
}
getStatus(){
return this.isFieldEmpty;
}
}

View File

@ -1,8 +0,0 @@
class Product {
constructor(name, type, farcing, price) {
this.name = name;
this.type = type;
this.farcing = farcing;
this.price = price
}
}

View File

@ -1,17 +0,0 @@
class Rack{
constructor(noOfShelf, typOfProduct) {
this.noOfShelf = noOfShelf;
}
addShelf(){
this.noOfShelf = this.noOfShelf + 1;
}
isEmpty(){
if (this.noOfShelf === 0){
return true;
}else {
return false;
}
}
}

View File

@ -1,5 +0,0 @@
class Shelf {
constructor(number) {
this.number = number;
}
}