• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java PaintDebugger类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.parabot.core.paint.PaintDebugger的典型用法代码示例。如果您正苦于以下问题:Java PaintDebugger类的具体用法?Java PaintDebugger怎么用?Java PaintDebugger使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



PaintDebugger类属于org.parabot.core.paint包,在下文中一共展示了PaintDebugger类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: paint

import org.parabot.core.paint.PaintDebugger; //导入依赖的package包/类
@Override
public void paint(Graphics g) {
    if (!Game.isLoggedIn()) {
        return;
    }
    final Client        client   = Loader.getClient();
    final Player        p        = Players.getMyPlayer();
    final Tile          t        = p.getLocation();
    final Point         point    = Calculations.tileToMap(t);
    final PaintDebugger debugger = Context.getInstance().getPaintDebugger();
    debugger.addLine("MapBase: (" + client.getBaseX() + ", "
            + client.getBaseY() + ")");
    debugger.addLine("Location: (" + t.getX() + ", " + t.getY() + ")");
    debugger.addLine("Moving: " + p.isMoving());

    g.setColor(Color.RED);
    g.fillRect(point.x - 2, point.y - 2, 4, 4);

    g.setColor(Color.BLUE);
    g.fillRect(point.x, point.y, 1, 1);
}
 
开发者ID:Parabot,项目名称:Parabot-317-API-Minified-OS-Scape,代码行数:22,代码来源:DLocations.java


示例2: paint

import org.parabot.core.paint.PaintDebugger; //导入依赖的package包/类
@Override
public void paint(Graphics g) {
    PaintDebugger p        = Context.getInstance().getPaintDebugger();
    Tile          location = Players.getMyPlayer().getLocation();
    Tile          north    = new Tile(location.getX(), location.getY() + 1);
    Tile          south    = new Tile(location.getX(), location.getY() - 1);
    Tile          west     = new Tile(location.getX() - 1, location.getY());
    Tile          east     = new Tile(location.getX() + 1, location.getY());
    int           flag     = Game.getCollisionFlags()[location.getRegionX()][location.getRegionY()];
    p.addLine("Collision flag: 0x" + String.format("%X", flag));
    p.addLine("Reachable: [ cur: " + location.isReachable() + ", north: " + north.isReachable() + ", south: " + south.isReachable() + ", east: " + east.isReachable() + ", west: " + west.isReachable() + " ]");
    p.addLine("Walkable: [ cur: " + location.isWalkable() + ", north: " + north.isWalkable() + ", south: " + south.isWalkable() + ", east: " + east.isWalkable() + ", west: " + west.isWalkable() + " ]");
}
 
开发者ID:Parabot,项目名称:Parabot-317-API-Minified-PkHonor,代码行数:14,代码来源:DCollisionFlags.java


示例3: paint

import org.parabot.core.paint.PaintDebugger; //导入依赖的package包/类
@Override
public void paint(Graphics graphics) {
    PaintDebugger p = Context.getInstance().getPaintDebugger();
    p.addLine("Message: " + message);
    p.addLine("Sender: " + sender);
    p.addLine("Type: " + type);
}
 
开发者ID:Parabot,项目名称:Parabot-317-API-Minified-PkHonor,代码行数:8,代码来源:DMessages.java


示例4: paint

import org.parabot.core.paint.PaintDebugger; //导入依赖的package包/类
@Override
public void paint(Graphics g) {
    final StringBuilder stringBuilder = new StringBuilder();
    final Mouse         mouse         = Mouse.getInstance();
    final Point         point         = mouse.getPoint();
    stringBuilder.append("Mouse Location: [").append(point.x).append(", ").append(point.y).append("]");
    PaintDebugger.getInstance().addLine(stringBuilder.toString());
}
 
开发者ID:Parabot,项目名称:Parabot-317-API-Minified-OS-Scape,代码行数:9,代码来源:DMouse.java


示例5: paint

import org.parabot.core.paint.PaintDebugger; //导入依赖的package包/类
@Override
public void paint(Graphics g) {
	PaintDebugger p = Context.getInstance().getPaintDebugger();
	Tile location = Players.getMyPlayer().getLocation();
	Tile north = new Tile(location.getX(), location.getY() + 1);
	Tile south = new Tile(location.getX(), location.getY() - 1);
	Tile west = new Tile(location.getX() - 1, location.getY());
	Tile east = new Tile(location.getX() + 1, location.getY());
	int flag = Game.getCollisionFlags()[location.getRegionX()][location.getRegionY()];
	p.addLine("Collision flag: 0x" + String.format("%X", flag));
	p.addLine("Reachable: [ cur: " + location.isReachable() + ", north: " + north.isReachable() + ", south: " + south.isReachable() + ", east: " + east.isReachable() + ", west: " + west.isReachable() + " ]");
	p.addLine("Walkable: [ cur: " + location.isWalkable() + ", north: " + north.isWalkable() + ", south: " + south.isWalkable() + ", east: " + east.isWalkable() + ", west: " + west.isWalkable() + " ]");
}
 
开发者ID:Parabot,项目名称:Parabot-377-API-Minified,代码行数:14,代码来源:DCollisionFlags.java


示例6: BotMenu

import org.parabot.core.paint.PaintDebugger; //导入依赖的package包/类
public BotMenu(JMenuBar bar) {
	PaintDebugger debugger = Context.getInstance().getPaintDebugger();
	
	JMenu debug = new JMenu("Debug");

	JMenuItem inventory = newItem("Inventory");
	JMenuItem bank = newItem("Bank");
	JMenuItem map = newItem("Map");
	JMenuItem animation = newItem("Animation");
	JMenuItem objects = newItem("Objects");
	JMenuItem npcs = newItem("Npcs");
	JMenuItem items = newItem("GroundItems");
	JMenuItem interfaces = newItem("Interfaces");
	JMenuItem flags = newItem("Collision flags");
	JMenuItem actions = newItem("Actions");
	
	debugger.addDebugger("Actions", new DActions());
	debugger.addDebugger("Animation", new DAnimation());
	debugger.addDebugger("Inventory", new DInventory());
	debugger.addDebugger("Bank", new DBank());
	debugger.addDebugger("Map", new DMap());
	debugger.addDebugger("Objects", new DSceneObjects());
	debugger.addDebugger("Npcs", new DNpcs());
	debugger.addDebugger("GroundItems", new DGroundItems());
	debugger.addDebugger("Interfaces", new DInterfaces());
	debugger.addDebugger("Collision flags", new DCollisionFlags());
	
	debug.add(actions);
	debug.add(map);
	debug.add(animation);
	debug.add(objects);
	debug.add(npcs);
	debug.add(items);
	debug.add(interfaces);
	debug.add(flags);
	debug.add(inventory);
	debug.add(bank);
	
	bar.add(debug);
}
 
开发者ID:Parabot,项目名称:Parabot-377-API-Minified,代码行数:41,代码来源:BotMenu.java


示例7: Context

import org.parabot.core.paint.PaintDebugger; //导入依赖的package包/类
private Context(final ServerProvider serverProvider) {
    threadGroups.put(Thread.currentThread().getThreadGroup(), this);

    System.setProperty("sun.java.command", "");
    this.serverProvider = serverProvider;
    this.paintDebugger = new PaintDebugger();
    this.classPath = new ClassPath();
    this.classLoader = new ASMClassLoader(classPath);
    this.randomHandler = new RandomHandler();

    this.jsonParser = new JSONParser();

    this.defaultOut = System.out;
    this.defaultErr = System.err;
}
 
开发者ID:Parabot,项目名称:Parabot,代码行数:16,代码来源:Context.java


示例8: paint

import org.parabot.core.paint.PaintDebugger; //导入依赖的package包/类
@Override
public void paint(Graphics g) {
    PaintDebugger p = Context.getInstance().getPaintDebugger();
    p.addLine("Location: " + Players.getMyPlayer().getLocation());
    p.addLine("Plane: " + Game.getPlane());
}
 
开发者ID:Parabot,项目名称:Parabot-317-API-Minified-PkHonor,代码行数:7,代码来源:DMap.java


示例9: paint

import org.parabot.core.paint.PaintDebugger; //导入依赖的package包/类
@Override
public void paint(Graphics g) {
    PaintDebugger p = Context.getInstance().getPaintDebugger();
    p.addLine("Open interface: " + Interfaces.getOpenInterfaceId());
    p.addLine("Open back dialog: " + Interfaces.getBackDialogId());
}
 
开发者ID:Parabot,项目名称:Parabot-317-API-Minified-PkHonor,代码行数:7,代码来源:DInterfaces.java


示例10: BotMenu

import org.parabot.core.paint.PaintDebugger; //导入依赖的package包/类
public BotMenu(JMenuBar bar) {
    PaintDebugger debugger = Context.getInstance().getPaintDebugger();

    JMenu debug = new JMenu("Debug");

    JMenu     actions       = new JMenu("Actions");
    JMenuItem enableActions = newItem("Enable Actions");

    JMenuItem animation  = newItem("Animation");
    JMenuItem bank       = newItem("Bank");
    JMenuItem flags      = newItem("Collision flags");
    JMenuItem items      = newItem("GroundItems");
    JMenuItem interfaces = newItem("Interfaces");
    JMenuItem inventory  = newItem("Inventory");
    JMenuItem map        = newItem("Map");
    JMenuItem messages   = newItem("Messages");
    JMenuItem mouse      = newItem("Mouse");
    JMenuItem npcs       = newItem("Npcs");
    JMenuItem objects    = newItem("Objects");
    JMenuItem players    = newItem("Players");

    debugger.addDebugger("Enable Actions", new DActions());
    debugger.addDebugger("Animation", new DAnimation());
    debugger.addDebugger("Bank", new DBank());
    debugger.addDebugger("Collision flags", new DCollisionFlags());
    debugger.addDebugger("GroundItems", new DGroundItems());
    debugger.addDebugger("Interfaces", new DInterfaces());
    debugger.addDebugger("Inventory", new DInventory());
    debugger.addDebugger("Map", new DMap());
    debugger.addDebugger("Messages", new DMessages());
    debugger.addDebugger("Mouse", new DMouse());
    debugger.addDebugger("Npcs", new DNpcs());
    debugger.addDebugger("Objects", new DSceneObjects());
    debugger.addDebugger("Players", new DPlayers());

    debug.add(actions);
    actions.add(enableActions);
    debug.add(animation);
    debug.add(bank);
    debug.add(flags);
    debug.add(items);
    debug.add(interfaces);
    debug.add(inventory);
    debug.add(map);
    debug.add(messages);
    debug.add(mouse);
    debug.add(npcs);
    debug.add(objects);
    debug.add(players);

    actions.addSeparator();

    ButtonGroup group = new ButtonGroup();
    for (int i = 0; i < MenuAction.getOutputs().length; i++) {
        final int index       = i;
        JMenuItem debugOutput = new JRadioButtonMenuItem("Output: " + index);
        debugOutput.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                MenuAction.setCurrentOutputIndex(index);

            }
        });
        group.add(debugOutput);
        actions.add(debugOutput);
    }

    bar.add(debug);
}
 
开发者ID:Parabot,项目名称:Parabot-317-API-Minified-PkHonor,代码行数:70,代码来源:BotMenu.java


示例11: paint

import org.parabot.core.paint.PaintDebugger; //导入依赖的package包/类
@Override
public void paint(Graphics g) {
    PaintDebugger.getInstance().addLine("Username: " + Players.getMyPlayer().getName());
}
 
开发者ID:Parabot,项目名称:Parabot-317-API-Minified-OS-Scape,代码行数:5,代码来源:DUsername.java


示例12: BotMenu

import org.parabot.core.paint.PaintDebugger; //导入依赖的package包/类
public BotMenu(JMenuBar bar) {
        PaintDebugger debugger = Context.getInstance().getPaintDebugger();

        JMenu debug = new JMenu("Debug");

        JMenuItem animation = newItem("Animation");
//        JMenuItem bank = newItem("Bank");
//        JMenuItem flags = newItem("Collision flags");
//        JMenuItem items = newItem("GroundItems");
//        JMenuItem interfaces = newItem("Interfaces");
//        JMenuItem inventory = newItem("Inventory");
        JMenuItem locations = newItem("Locations");
        JMenuItem minimap   = newItem("Minimap");
//        JMenuItem messages = newItem("Messages");
        JMenuItem mouse    = newItem("Mouse");
        JMenuItem npcs     = newItem("Npcs");
        JMenuItem objects  = newItem("Objects");
        JMenuItem players  = newItem("Players");
        JMenuItem username = newItem("Username");

        debugger.addDebugger("Animation", new DAnimation());
//        debugger.addDebugger("Bank", new DBank());
//        debugger.addDebugger("Collision flags", new DCollisionFlags());
//        debugger.addDebugger("GroundItems", new DGroundItems());
//        debugger.addDebugger("Interfaces", new DInterfaces());
//        debugger.addDebugger("Inventory", new DInventory());
        debugger.addDebugger("Locations", new DLocations());
        debugger.addDebugger("Minimap", new DMinimap());
//        debugger.addDebugger("Messages", new DMessages());
        debugger.addDebugger("Mouse", new DMouse());
        debugger.addDebugger("Npcs", new DNpcs());
        debugger.addDebugger("Objects", new DObjects());
        debugger.addDebugger("Players", new DPlayers());
        debugger.addDebugger("Username", new DUsername());

//        debug.add(actions);
//        actions.add(enableActions);
        debug.add(animation);
//        debug.add(bank);
//        debug.add(flags);
//        debug.add(items);
//        debug.add(interfaces);
//        debug.add(inventory);
        debug.add(locations);
        debug.add(minimap);
//        debug.add(messages);
        debug.add(mouse);
        debug.add(npcs);
        debug.add(objects);
        debug.add(players);
        debug.add(username);

        bar.add(debug);
    }
 
开发者ID:Parabot,项目名称:Parabot-317-API-Minified-OS-Scape,代码行数:55,代码来源:BotMenu.java


示例13: paint

import org.parabot.core.paint.PaintDebugger; //导入依赖的package包/类
@Override
public void paint(Graphics g) {
	PaintDebugger p = Context.getInstance().getPaintDebugger();
	p.addLine("Location: " + Players.getMyPlayer().getLocation());
	p.addLine("Plane: " + Game.getPlane());
}
 
开发者ID:Parabot,项目名称:Parabot-377-API-Minified,代码行数:7,代码来源:DMap.java


示例14: paint

import org.parabot.core.paint.PaintDebugger; //导入依赖的package包/类
@Override
public void paint(Graphics g) {
	PaintDebugger p = Context.getInstance().getPaintDebugger();
	p.addLine("Open interface: " + Game.getOpenInterfaceId());
	p.addLine("Open back dialog: " + Game.getOpenBackDialogId());
}
 
开发者ID:Parabot,项目名称:Parabot-377-API-Minified,代码行数:7,代码来源:DInterfaces.java


示例15: getPaintDebugger

import org.parabot.core.paint.PaintDebugger; //导入依赖的package包/类
/**
 * The client debug painter
 *
 * @return debug painter
 */
public PaintDebugger getPaintDebugger() {
    return paintDebugger;
}
 
开发者ID:Parabot,项目名称:Parabot,代码行数:9,代码来源:Context.java



注:本文中的org.parabot.core.paint.PaintDebugger类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java AbstractPropertyBindingResult类代码示例发布时间:2022-05-22
下一篇:
Java CallerDisconnectedException类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap