mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-16 08:58:49 +00:00
Resolves checkstyle errors for facade factory-kit spatial-partition state step-builder (#1077)
* Reduces checkstyle errors in facade * Reduces checkstyle errors in factory-kit * Reduces checkstyle errors in spatial-partition * Reduces checkstyle errors in state * Reduces checkstyle errors in step-builder
This commit is contained in:
committed by
Ilkka Seppälä
parent
2628cc0dfc
commit
c954a436ad
+6
-4
@@ -26,18 +26,20 @@ package com.iluwatar.spatialpartition;
|
||||
import java.util.Hashtable;
|
||||
|
||||
/**
|
||||
* This abstract class has 2 fields, one of which is a hashtable containing all objects
|
||||
* that currently exist on the field and a quadtree which keeps track of locations.
|
||||
* This abstract class has 2 fields, one of which is a hashtable containing all objects that
|
||||
* currently exist on the field and a quadtree which keeps track of locations.
|
||||
*
|
||||
* @param <T> T will be type of object (that extends Point)
|
||||
*/
|
||||
|
||||
public abstract class SpatialPartitionGeneric<T> {
|
||||
|
||||
Hashtable<Integer, T> playerPositions;
|
||||
QuadTree qTree;
|
||||
QuadTree quadTree;
|
||||
|
||||
/**
|
||||
* handles collisions for object obj using quadtree
|
||||
* handles collisions for object obj using quadtree.
|
||||
*
|
||||
* @param obj is the object for which collisions need to be checked
|
||||
*/
|
||||
abstract void handleCollisionsUsingQt(T obj);
|
||||
|
||||
Reference in New Issue
Block a user