Gridarta Editor
IsoMapSquareInfo.java
Go to the documentation of this file.
1 /*
2  * Gridarta MMORPG map editor for Crossfire, Daimonin and similar games.
3  * Copyright (C) 2000-2023 The Gridarta Developers.
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  */
19 
20 package net.sf.gridarta.model.gameobject;
21 
26 public class IsoMapSquareInfo {
27 
31  private final int xLen;
32 
36  private final int xLen2;
37 
41  private final int yLen;
42 
46  private final int yLen2;
47 
55  public IsoMapSquareInfo(final int xLen, final int xLen2, final int yLen, final int yLen2) {
56  this.xLen = xLen;
57  this.xLen2 = xLen2;
58  this.yLen = yLen;
59  this.yLen2 = yLen2;
60  }
61 
66  public int getXLen() {
67  return xLen;
68  }
69 
74  public int getXLen2() {
75  return xLen2;
76  }
77 
82  public int getYLen() {
83  return yLen;
84  }
85 
90  public int getYLen2() {
91  return yLen2;
92  }
93 
94 }
net.sf.gridarta.model.gameobject.IsoMapSquareInfo.yLen2
final int yLen2
The vertical center of a square.
Definition: IsoMapSquareInfo.java:46
net.sf.gridarta.model.gameobject.IsoMapSquareInfo.xLen
final int xLen
The horizontal size of a square.
Definition: IsoMapSquareInfo.java:31
net.sf.gridarta.model.gameobject.IsoMapSquareInfo
Provides information about isometric map squares.
Definition: IsoMapSquareInfo.java:26
net.sf.gridarta.model.gameobject.IsoMapSquareInfo.yLen
final int yLen
The vertical size of a square.
Definition: IsoMapSquareInfo.java:41
net.sf.gridarta.model.gameobject.IsoMapSquareInfo.getXLen
int getXLen()
Returns the horizontal size of a square.
Definition: IsoMapSquareInfo.java:66
net.sf.gridarta.model.gameobject.IsoMapSquareInfo.getXLen2
int getXLen2()
Returns the horizontal center of a square.
Definition: IsoMapSquareInfo.java:74
net.sf.gridarta.model.gameobject.IsoMapSquareInfo.getYLen
int getYLen()
Returns the vertical size of a square.
Definition: IsoMapSquareInfo.java:82
net.sf.gridarta.model.gameobject.IsoMapSquareInfo.getYLen2
int getYLen2()
Returns the vertical center of a square.
Definition: IsoMapSquareInfo.java:90
net.sf.gridarta.model.gameobject.IsoMapSquareInfo.xLen2
final int xLen2
The horizontal center of a square.
Definition: IsoMapSquareInfo.java:36
net.sf.gridarta.model.gameobject.IsoMapSquareInfo.IsoMapSquareInfo
IsoMapSquareInfo(final int xLen, final int xLen2, final int yLen, final int yLen2)
Creates a new instance.
Definition: IsoMapSquareInfo.java:55