Package view2D

Examples of view2D.ButtonMovementListener


    bUp.setFocusable(false);
    bDown.setFocusable(false);
    help.setFocusable(false);
   
    // Instantiate the listeners.
    bLeft.addActionListener(new ButtonMovementListener(ButtonMovementListener.Direction.gauche, labyrinth, bob));
    bRight.addActionListener(new ButtonMovementListener(ButtonMovementListener.Direction.droite, labyrinth, bob));
    bUp.addActionListener(new ButtonMovementListener(ButtonMovementListener.Direction.haut, labyrinth, bob));
    bDown.addActionListener(new ButtonMovementListener(ButtonMovementListener.Direction.bas, labyrinth, bob));
    help.addActionListener(new ButtonHintListener(this));
   
    // Infos on player.
    life = new JLabel(bob.getLife() + "%");
    add(life);
View Full Code Here

TOP

Related Classes of view2D.ButtonMovementListener

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.