All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tenio.engine.physic2d.utility.Cell Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 0.6.0
Show newest version
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