Package cross

Examples of cross.LampCross


    //create stop crosses
    stopcross = new ArrayList<StopCross>();
    stopcross.add(new StopCross());
   
    lampcross = new ArrayList<LampCross>();
    lampcross.add(new LampCross());
   
    bank = new ArrayList<Bank>();
    bank.add(new Bank());
   
    hidingplace = new ArrayList<HidingPlace>();
View Full Code Here


    // STOP CROSSES
    StopCross sc1 = new StopCross();
    stopcross.add(sc1);

    // LAMP CROSSES
    LampCross lc1 = new LampCross();
    lampcross.add(lc1);

    // HIDING PLACE
    hidingplace = new HidingPlace();
View Full Code Here

    //STOP CROSSES
    StopCross sc1 = new StopCross();
    stopcross.add(sc1);
   
    //LAMP CROSSES
    LampCross lc1 = new LampCross();
    lampcross.add(lc1);
 
    //HIDING PLACE
    hidingplace = new HidingPlace();
   
View Full Code Here

    //STOP CROSSES
    StopCross sc1 = new StopCross();
    stopcross.add(sc1);
   
    //LAMP CROSSES
    LampCross lc1 = new LampCross();
    lampcross.add(lc1);
   
    //HIDING PLACE
    hidingplace = new HidingPlace();
   
View Full Code Here

    //STOP CROSSES
    StopCross sc1 = new StopCross();
    stopcross.add(sc1);
   
    //LAMP CROSSES
    LampCross lc1 = new LampCross();
    lampcross.add(lc1);
 
    //HIDING PLACE
    hidingplace = new HidingPlace();
   
View Full Code Here

    {     
      GraphicsLampCross ep = (GraphicsLampCross)o;
      gc.setColor(new Color(255,0,0));
      gc.drawRect(ep.getPosition().x-12,ep.getPosition().y-12,25,25);
      MainGraphics gr = Game.getInstance().getMap().getGraphics();
      LampCross lc = Game.getInstance().getMap().getLampCrosses().get(0);
     
      //vegigmegyunk a lampakon
      for (int i=0;i<lc.getLamps().size();i++){
        // a lampa alapjan rajzoljuk a helyes helyre
        int x = ep.getLampPosition(i).x;
        int y = ep.getLampPosition(i).y;
       
        //megnezzuk a lampa allapotat, ha zold
        if (lc.getLamps().get(i).getState())
        {
          // zold lampat rajzolunk
          ep.getLampIcon(1).paintIcon(MainGraphics.get().getCanvas(), gc, x,y)
        }
        // ha nem zold
View Full Code Here

      GameTimer.setNotifyEnabled(true);
      route = new Route();
      entry_point = new EntryPoint();
      quit_point = new QuitPoint();
      stop_cross = new StopCross();
      lamp_cross = new LampCross();
      bank = new Bank();
      hiding_place = new HidingPlace();
//      gameTimer = GameTimer.getInstance(true);//biztos, ami biztos, kapcsoljuk be azt, h mutassa az esemenyeket
      while(wait){
        if(GameTimer.getInstance().isFinished()){
View Full Code Here

TOP

Related Classes of cross.LampCross

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.