com.tenio.engine.physic2d.utility.Cell Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tenio-engine Show documentation
Show all versions of tenio-engine Show documentation
TenIO is a java NIO (Non-blocking I/O) based server specifically designed for multiplayer games.
It supports UDP and TCP transports which are handled by Netty for high-speed network transmission.
This is the engine module for the game related handlers of the framework.
package com.tenio.engine.physic2d.utility;
import com.tenio.engine.physic2d.common.InvertedAabbBox2D;
import java.util.LinkedList;
import java.util.List;
/**
* This class is used to define a cell containing a list of pointers to
* entities.
*/
class Cell {
/**
* All the entities inhabiting this cell.
*/
public List members = new LinkedList();
/**
* The cell's bounding box (it's inverted because the Window's default
* co-ordinate system has a y axis that increases as it descends).
*/
public InvertedAabbBox2D bbox;
public Cell(float left, float top, float right, float bottom) {
bbox = InvertedAabbBox2D.valueOf(left, top, right, bottom);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy