Package rtype.entity

Examples of rtype.entity.Bonus


public class BonusFactory
{

  public static Bonus createBonus(int type)
  {
    Bonus b = null;
    switch(type)
    {
      case IEntity.BONUS_BOOSTER : b=  new BonusBooster() ; break;
      case IEntity.BONUS_LIGHTNING_ORB : b=  new BonusLightningOrb() ; break;
      case IEntity.BONUS_GRAVITY_ORB : b=  new BonusMagneticOrb() ; break;
View Full Code Here


     
      addBasicEntities();
     
      player1.addEventListeners();
     
      Bonus b = BonusFactory.createBonus(IEntity.BONUS_LIGHTNING_ORB);
      b.spawn(new Vector2f(player1.position.x+100,player1.position.y), DEFAULT_SCROLLING_SPEED, bonus);
     
     
      addControlKeys();
     
     
View Full Code Here

TOP

Related Classes of rtype.entity.Bonus

Copyright © 2018 www.massapicom. 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.