Package org.solarus.editor.entities

Examples of org.solarus.editor.entities.Block


     * Updates the information displayed in the fields.
     */
    public void update() {
        super.update(); // update the common fields

        Block block = (Block) entity;
        String sprite = block.getStringProperty("sprite");
        boolean canBePushed = block.getBooleanProperty("pushable");
        boolean canBePulled = block.getBooleanProperty("pullable");
        MaximumMoves maximumMoves = MaximumMoves.get(block.getIntegerProperty("maximum_moves"));

        spriteField.setSelectedId(sprite);
        canBePushedField.setSelected(canBePushed);
        canBePulledField.setSelected(canBePulled);
        maximumMovesField.setValue(maximumMoves);
View Full Code Here

TOP

Related Classes of org.solarus.editor.entities.Block

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.