Package marauroa.common.game

Examples of marauroa.common.game.RPClass.addAttribute()


    entity.addAttribute("type", Type.STRING);

    /**
     * Resistance to other entities (0-100). 0=Phantom, 100=Obstacle.
     */
    entity.addAttribute("resistance", Type.BYTE, Definition.VOLATILE);

    entity.addAttribute("x", Type.SHORT);
    entity.addAttribute("y", Type.SHORT);

    /*
 
View Full Code Here


    /**
     * Resistance to other entities (0-100). 0=Phantom, 100=Obstacle.
     */
    entity.addAttribute("resistance", Type.BYTE, Definition.VOLATILE);

    entity.addAttribute("x", Type.SHORT);
    entity.addAttribute("y", Type.SHORT);

    /*
     * The size of the entity (in world units).
     */
 
View Full Code Here

     * Resistance to other entities (0-100). 0=Phantom, 100=Obstacle.
     */
    entity.addAttribute("resistance", Type.BYTE, Definition.VOLATILE);

    entity.addAttribute("x", Type.SHORT);
    entity.addAttribute("y", Type.SHORT);

    /*
     * The size of the entity (in world units).
     */
    entity.addAttribute("width", Type.SHORT, Definition.VOLATILE);
View Full Code Here

    entity.addAttribute("y", Type.SHORT);

    /*
     * The size of the entity (in world units).
     */
    entity.addAttribute("width", Type.SHORT, Definition.VOLATILE);
    entity.addAttribute("height", Type.SHORT, Definition.VOLATILE);

    /*
     * Obsolete and ignored by the client. Do not use.
     */
 
View Full Code Here

    /*
     * The size of the entity (in world units).
     */
    entity.addAttribute("width", Type.SHORT, Definition.VOLATILE);
    entity.addAttribute("height", Type.SHORT, Definition.VOLATILE);

    /*
     * Obsolete and ignored by the client. Do not use.
     */
    entity.addAttribute("server-only", Type.FLAG, Definition.VOLATILE);
View Full Code Here

    entity.addAttribute("height", Type.SHORT, Definition.VOLATILE);

    /*
     * Obsolete and ignored by the client. Do not use.
     */
    entity.addAttribute("server-only", Type.FLAG, Definition.VOLATILE);

    /*
     * The current overlayed client effect.
     */
    entity.addAttribute("effect", Type.STRING, Definition.VOLATILE);
View Full Code Here

    entity.addAttribute("server-only", Type.FLAG, Definition.VOLATILE);

    /*
     * The current overlayed client effect.
     */
    entity.addAttribute("effect", Type.STRING, Definition.VOLATILE);

    /*
     * The visibility of the entity drawn on client (0-100). 0=Invisible,
     * 100=Solid. Useful when mixed with effect.
     */
 
View Full Code Here

    /*
     * The visibility of the entity drawn on client (0-100). 0=Invisible,
     * 100=Solid. Useful when mixed with effect.
     */
    entity.addAttribute("visibility", Type.INT, Definition.VOLATILE);

    // cursor
    entity.addAttribute("cursor", Type.STRING);

    // sound events
View Full Code Here

     * 100=Solid. Useful when mixed with effect.
     */
    entity.addAttribute("visibility", Type.INT, Definition.VOLATILE);

    // cursor
    entity.addAttribute("cursor", Type.STRING);

    // sound events
    entity.addRPEvent(Events.SOUND, Definition.VOLATILE);
  }

View Full Code Here

    // Note: text and private_text need to be kept because volatile
    //       attributes have been stored to the database in the past.
    //       And old characters, who logged out in the same turn as a
    //       private_text was set, cannot be loaded without this definition.
    player.addAttribute("text", Type.LONG_STRING, Definition.VOLATILE);
//    player.addAttribute("private_text", Type.LONG_STRING, (byte) (Definition.HIDDEN | Definition.VOLATILE));

    player.addRPEvent(Events.PRIVATE_TEXT, Definition.PRIVATE);
    player.addRPEvent(Events.PLAYER_LOGGED_ON, Definition.PRIVATE);
    player.addRPEvent(Events.PLAYER_LOGGED_OUT, Definition.PRIVATE);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.