com.planeth.gtroids.environment
Class Quadrant

java.lang.Object
  extended bycom.planeth.gtroids.environment.Quadrant

public class Quadrant
extends java.lang.Object

A Quadrant is a small area to handle game objects.
It's used to splitt the whole gameField in smaller parts to minimize the required calculations (f.e. collision checks) between game objects.

Author:
Andreas Grässer, gal@planet-h.com.
created Jun 1, 2005
See Also:
FieldedArea, QuadrantIterator

Constructor Summary
Quadrant()
          Constructor for Quadrant.
Quadrant(double size)
          Constructor for Quadrant.
 
Method Summary
 java.util.List getObjects()
          Returns the containing Objects
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Quadrant

public Quadrant()
Constructor for Quadrant.


Quadrant

public Quadrant(double size)
Constructor for Quadrant.

Parameters:
size - the size of the Quadrant
Method Detail

getObjects

public java.util.List getObjects()
Returns the containing Objects

Returns:
Returns the containing Objects