Package games.mapacman.common

Source Code of games.mapacman.common.common

package games.mapacman.common;

import marauroa.common.game.RPClass;

public class common {

  public static void initRPClasses() {
      RPClass pos=new RPClass("position");
      pos.add("x",RPClass.INT);
      pos.add("y",RPClass.INT);
         
      RPClass player=new RPClass(consts.TYPE_PLAYER);
      player.isA("position");
      player.add("text",RPClass.LONG_STRING, RPClass.VOLATILE);
      player.add("score",RPClass.INT);
      player.add("power",RPClass.INT);
      player.add("name",RPClass.STRING);
      player.add("dir",RPClass.BYTE,RPClass.VOLATILE);
      player.add("nextdir",RPClass.BYTE,RPClass.VOLATILE);
     
      RPClass ghost = new RPClass(consts.TYPE_GHOST);
      ghost.isA("position");
      ghost.add("dir",RPClass.BYTE);
      ghost.add("nextdir",RPClass.BYTE);
      ghost.add("!changedir",RPClass.INT,RPClass.HIDDEN);
      ghost.add("color",RPClass.BYTE);

    
      RPClass wall = new RPClass(consts.TYPE_WALL);
      wall.isA("position");   
     
      Dot.initRPClass();
      Superdot.initRPClass();
      Fruit.initRPClass();
      Powerpill.initRPClass();
      ZoneChangePoint.initRPClass();
     
     
  }
 

}
TOP

Related Classes of games.mapacman.common.common

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.