1 package ru
.deadsoftware
.cavecraft
.game
;
3 public class GameWorld
{
5 private final int WIDTH
, HEIGHT
;
6 private int[][] foreMap
;
7 private int[][] backMap
;
9 public GameWorld(int w
, int h
) {
12 foreMap
= new int[WIDTH
][HEIGHT
];
13 backMap
= new int[WIDTH
][HEIGHT
];
16 public int getWidth() {
20 public int getHeight() {
24 public int getForeMap(int x
, int y
) {
28 public void setForeMap(int x
, int y
, int value
) {
29 foreMap
[x
][y
] = value
;
32 public int getBackMap(int x
, int y
) {
36 public void setBackMap(int x
, int y
, int value
) {
37 backMap
[x
][y
] = value
;