Package ru.vagrant_ai.questionmarkgame.obj.add

Examples of ru.vagrant_ai.questionmarkgame.obj.add.Light


  public void update()
  {
    for (int i = 0; i < light_array.size(); ++i) //light update
    {
      Light element = light_array.get(i);
      element.update();
    }
    for (int i = 0; i < money_array.size(); ++i) //money update
    {
      Money element = money_array.get(i);
      element.update();
    }
    for (int i = 0; i < money_array.size(); ++i) //money remove
    {
      Money element = money_array.get(i);
      if (element.state == 0)
        money_array.remove(i);
    }
    for (int i = 0; i < sniper_array.size(); ++i) //sniper update
    {
      Sniper element = sniper_array.get(i);
      element.update();
    }
    if (knife)
      knifeUpdate();
    if (GameplayState.monster_controller.getState() == WS.BREAK)
    {
View Full Code Here


 
  public void render(Graphics g)
  {
    for (int i = 0; i < light_array.size(); ++i)
    {
      Light element = light_array.get(i);
      element.render(g);
    }
    for (int i = 0; i < money_array.size(); ++i)
    {
      Money element = money_array.get(i);
      element.render();
    }
    //shop render in Background
    //sniper render in Background   
  }
View Full Code Here

  }
 
  public static void addLight(int x, float width, byte damage, float speed, int type)
  {
    light_quantity[type-1]++;
    Light light = new Light(x, type);
    light_array.add(light);
    return;
  }
View Full Code Here

TOP

Related Classes of ru.vagrant_ai.questionmarkgame.obj.add.Light

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.