Package net.itscrafted.handlers

Source Code of net.itscrafted.handlers.EnemyFactory

/**
* Handles the creation of PushBalls.
*/

package net.itscrafted.handlers;

import java.util.ArrayList;

import net.itscrafted.entity.Player;
import net.itscrafted.entity.PushBall;

public class EnemyFactory {
 
  private static ArrayList<PushBall> pushBalls;
  private static Player player;
 
  public static void init(ArrayList<PushBall> pb, Player p) {
    pushBalls = pb;
    player = p;
  }
 
  public static void spawn(double x, double y, double speed) {
    pushBalls.add(new PushBall(x, y, speed, player));
  }
 
  public static void properties(Property p) {
   
  }
 
}
TOP

Related Classes of net.itscrafted.handlers.EnemyFactory

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.