You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
1.2 KiB
65 lines
1.2 KiB
/*
|
|
* To change this license header, choose License Headers in Project Properties.
|
|
* To change this template file, choose Tools | Templates
|
|
* and open the template in the editor.
|
|
*/
|
|
package com.dungeoncrawler.model;
|
|
|
|
/**
|
|
*
|
|
* @author jonathan
|
|
*/
|
|
public class Room {
|
|
private ItemContainer[] item;
|
|
private Entity[] enemies;
|
|
int lvl;
|
|
|
|
public Room(ItemContainer[] item, Entity[] enemies){
|
|
this.item = item;
|
|
this.enemies = enemies;
|
|
|
|
}
|
|
|
|
|
|
public void spawnEnemies(int xPos, int yPos, Entity enemy){
|
|
enemy.setxPos(xPos);
|
|
enemy.setyPos(yPos);
|
|
}
|
|
|
|
public void spawnItem(int xPos, int yPos){
|
|
// TODO: Zu Implementieren
|
|
}
|
|
|
|
/**
|
|
* @return the item
|
|
*/
|
|
public ItemContainer[] getItem() {
|
|
return item;
|
|
}
|
|
|
|
/**
|
|
* @param item the item to set
|
|
*/
|
|
public void setItem(ItemContainer[] item) {
|
|
this.item = item;
|
|
}
|
|
|
|
/**
|
|
* @return the enemies
|
|
*/
|
|
public Entity[] getEnemies() {
|
|
return enemies;
|
|
}
|
|
|
|
/**
|
|
* @param enemies the enemies to set
|
|
*/
|
|
public void setEnemies(Entity[] enemies) {
|
|
this.enemies = enemies;
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|