当前位置: 首页>>代码示例>>Java>>正文


Java Debug.v方法代码示例

本文整理汇总了Java中org.andengine.util.debug.Debug.v方法的典型用法代码示例。如果您正苦于以下问题:Java Debug.v方法的具体用法?Java Debug.v怎么用?Java Debug.v使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.andengine.util.debug.Debug的用法示例。


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

示例1: parseTourStop

import org.andengine.util.debug.Debug; //导入方法依赖的package包/类
private void parseTourStop(Attributes attributes) throws SAXException {
    Debug.v("Parsing locale tour stop");
    String stopId = attributes.getValue("id");
    if (stopId.equals("welcome")) {
        this.currentTourStop = locale.tour.welcome;
    } else if (stopId.equals("words")) {
        this.currentTourStop = locale.tour.words;
    } else if (stopId.equals("inventory")) {
        this.currentTourStop = locale.tour.inventory;
    } else if (stopId.equals("market")) {
        this.currentTourStop = locale.tour.market;
    } else if (stopId.equals("workshop")) {
        this.currentTourStop = locale.tour.workshop;
    } else if (stopId.equals("gifts")) {
        this.currentTourStop = locale.tour.gifts;
    }

}
 
开发者ID:Linguaculturalists,项目名称:Phoenicia,代码行数:19,代码来源:LocaleParser.java

示例2: onSceneTouchEvent

import org.andengine.util.debug.Debug; //导入方法依赖的package包/类
/**
 * Capture scene touch events and look for click/touch events on the map to trigger placement.
 * All other touch events are passed through.
 *
 * @param pSceneTouchEvent
 * @return
 */
@Override
public boolean onSceneTouchEvent(final TouchEvent pSceneTouchEvent) {
    Debug.v("Overlay touched");
    boolean handled = super.onSceneTouchEvent(pSceneTouchEvent);

    if (!handled && this.managedHUD != null) handled = this.managedHUD.onSceneTouchEvent(pSceneTouchEvent);
    if (!handled && this.spotlight != null) this.clickDetector.onManagedTouchEvent(pSceneTouchEvent);

    // Don't allow click-through to background hud or game scene, the tour should handle
    // any interactions
    return this.spotlight != null;
}
 
开发者ID:Linguaculturalists,项目名称:Phoenicia,代码行数:20,代码来源:TourOverlay.java

示例3: parseInventory

import org.andengine.util.debug.Debug; //导入方法依赖的package包/类
private void parseInventory(Attributes attributes) throws SAXException {
    Debug.v("Parsing locale inventory");
    this.locale.inventoryBlock = new InventoryBlock();
    this.locale.inventoryBlock.name = attributes.getValue("name");
    this.locale.inventoryBlock.level = attributes.getValue("level");
    String size = attributes.getValue("size");
    if (size == null || size == "" || size == "1x1" || size == "1x1x1") {
        this.locale.inventoryBlock.columns = 1;
        this.locale.inventoryBlock.rows = 1;
        this.locale.inventoryBlock.height = 1;
    } else {
        try {
            String[] dimensions = size.split("x");
            this.locale.inventoryBlock.columns = Integer.parseInt(dimensions[0]);
            this.locale.inventoryBlock.rows = Integer.parseInt(dimensions[1]);
            if (dimensions.length > 2) {
                this.locale.inventoryBlock.height = Integer.parseInt(dimensions[2]);
            } else {
                this.locale.inventoryBlock.height = 1;
            }
        } catch (Exception e) {
            Debug.e("Failed to parse size for: "+this.locale.inventoryBlock.name);
            e.printStackTrace();
        }
    }
    this.locale.inventoryBlock.block_texture = attributes.getValue("block");
    this.locale.inventoryBlock.mapCol = Integer.parseInt(attributes.getValue("col"));
    this.locale.inventoryBlock.mapRow = Integer.parseInt(attributes.getValue("row"));
}
 
开发者ID:Linguaculturalists,项目名称:Phoenicia,代码行数:30,代码来源:LocaleParser.java

示例4: parseMarket

import org.andengine.util.debug.Debug; //导入方法依赖的package包/类
private void parseMarket(Attributes attributes) throws SAXException {
    Debug.v("Parsing locale market");
    this.locale.marketBlock = new MarketBlock();
    this.locale.marketBlock.name = attributes.getValue("name");
    this.locale.marketBlock.level = attributes.getValue("level");
    this.locale.marketBlock.gifts_after = Integer.parseInt(attributes.getValue("gifts_after"));
    String size = attributes.getValue("size");
    if (size == null || size == "" || size == "1x1" || size == "1x1x1") {
        this.locale.marketBlock.columns = 1;
        this.locale.marketBlock.rows = 1;
        this.locale.marketBlock.height = 1;
    } else {
        try {
            String[] dimensions = size.split("x");
            this.locale.marketBlock.columns = Integer.parseInt(dimensions[0]);
            this.locale.marketBlock.rows = Integer.parseInt(dimensions[1]);
            if (dimensions.length > 2) {
                this.locale.marketBlock.height = Integer.parseInt(dimensions[2]);
            } else {
                this.locale.marketBlock.height = 1;
            }
        } catch (Exception e) {
            Debug.e("Failed to parse size for: "+this.locale.marketBlock.name);
            e.printStackTrace();
        }
    }
    this.locale.marketBlock.block_texture = attributes.getValue("block");
    this.locale.marketBlock.mapCol = Integer.parseInt(attributes.getValue("col"));
    this.locale.marketBlock.mapRow = Integer.parseInt(attributes.getValue("row"));
}
 
开发者ID:Linguaculturalists,项目名称:Phoenicia,代码行数:31,代码来源:LocaleParser.java

示例5: parseWorkshop

import org.andengine.util.debug.Debug; //导入方法依赖的package包/类
private void parseWorkshop(Attributes attributes) throws SAXException {
    Debug.v("Parsing locale workshop");
    this.locale.workshopBlock = new WorkshopBlock();
    this.locale.workshopBlock.name = attributes.getValue("name");
    this.locale.workshopBlock.level = attributes.getValue("level");
    String size = attributes.getValue("size");
    if (size == null || size == "" || size == "1x1" || size == "1x1x1") {
        this.locale.workshopBlock.columns = 1;
        this.locale.workshopBlock.rows = 1;
        this.locale.workshopBlock.height = 1;
    } else {
        try {
            String[] dimensions = size.split("x");
            this.locale.workshopBlock.columns = Integer.parseInt(dimensions[0]);
            this.locale.workshopBlock.rows = Integer.parseInt(dimensions[1]);
            if (dimensions.length > 2) {
                this.locale.workshopBlock.height = Integer.parseInt(dimensions[2]);
            } else {
                this.locale.workshopBlock.height = 1;
            }
        } catch (Exception e) {
            Debug.e("Failed to parse size for: "+this.locale.workshopBlock.name);
            e.printStackTrace();
        }
    }
    this.locale.workshopBlock.block_texture = attributes.getValue("block");
    this.locale.workshopBlock.mapCol = Integer.parseInt(attributes.getValue("col"));
    this.locale.workshopBlock.mapRow = Integer.parseInt(attributes.getValue("row"));
}
 
开发者ID:Linguaculturalists,项目名称:Phoenicia,代码行数:30,代码来源:LocaleParser.java

示例6: parsePerson

import org.andengine.util.debug.Debug; //导入方法依赖的package包/类
private void parsePerson(Attributes attributes) throws SAXException {
    Debug.v("Parsing locale person");
    Person newPerson = new Person();
    newPerson.name = attributes.getValue("name");
    newPerson.texture_src = attributes.getValue("texture");
    this.locale.people.add(newPerson);
    this.locale.person_map.put(newPerson.name, newPerson);
}
 
开发者ID:Linguaculturalists,项目名称:Phoenicia,代码行数:9,代码来源:LocaleParser.java

示例7: parseGame

import org.andengine.util.debug.Debug; //导入方法依赖的package包/类
private void parseGame(Attributes attributes) throws SAXException {
    Debug.v("Parsing locale game");
    Game newGame = new Game();
    newGame.name = attributes.getValue("name");
    newGame.level = attributes.getValue("level");
    String size = attributes.getValue("size");
    if (size == null || size == "" || size == "1x1" || size == "1x1x1") {
        newGame.columns = 1;
        newGame.rows = 1;
        newGame.height = 1;
    } else {
        try {
            String[] dimensions = size.split("x");
            newGame.columns = Integer.parseInt(dimensions[0]);
            newGame.rows = Integer.parseInt(dimensions[1]);
            if (dimensions.length > 2) {
                newGame.height = Integer.parseInt(dimensions[2]);
            } else {
                newGame.height = 1;
            }
        } catch (Exception e) {
            Debug.e("Failed to parse size for: "+newGame.name);
            e.printStackTrace();
        }
    }
    newGame.restriction = attributes.getValue("restrict");
    newGame.type = attributes.getValue("type");
    newGame.sprite_texture = attributes.getValue("sprite");
    newGame.block_texture = attributes.getValue("block");
    newGame.background_texture = attributes.getValue("background");
    newGame.host = this.locale.person_map.get(attributes.getValue("host"));
    newGame.buy = Integer.parseInt(attributes.getValue("buy"));
    newGame.construct = Integer.parseInt(attributes.getValue("construct"));
    newGame.time = Integer.parseInt(attributes.getValue("time"));
    newGame.reward = Float.parseFloat(attributes.getValue("reward"));
    this.locale.games.add(newGame);
    this.locale.game_map.put(newGame.name, newGame);
}
 
开发者ID:Linguaculturalists,项目名称:Phoenicia,代码行数:39,代码来源:LocaleParser.java

示例8: parseDecoration

import org.andengine.util.debug.Debug; //导入方法依赖的package包/类
private void parseDecoration(Attributes attributes) throws SAXException {
    Debug.v("Parsing locale decoration");
    Decoration newDecoration = new Decoration();
    newDecoration.name = attributes.getValue("name");
    newDecoration.level = attributes.getValue("level");
    String size = attributes.getValue("size");
    if (size == null || size == "" || size == "1x1" || size == "1x1x1") {
        newDecoration.columns = 1;
        newDecoration.rows = 1;
        newDecoration.height = 1;
    } else {
        try {
            String[] dimensions = size.split("x");
            newDecoration.columns = Integer.parseInt(dimensions[0]);
            newDecoration.rows = Integer.parseInt(dimensions[1]);
            if (dimensions.length > 2) {
                newDecoration.height = Integer.parseInt(dimensions[2]);
            } else {
                newDecoration.height = 1;
            }
        } catch (Exception e) {
            Debug.e("Failed to parse size for: "+newDecoration.name);
            e.printStackTrace();
        }
    }
    newDecoration.restriction = attributes.getValue("restrict");
    newDecoration.sprite_texture = attributes.getValue("sprite");
    newDecoration.block_texture = attributes.getValue("block");
    newDecoration.buy = Integer.parseInt(attributes.getValue("buy"));
    this.locale.decorations.add(newDecoration);
    this.locale.decoration_map.put(newDecoration.name, newDecoration);
}
 
开发者ID:Linguaculturalists,项目名称:Phoenicia,代码行数:33,代码来源:LocaleParser.java

示例9: parseTourGuide

import org.andengine.util.debug.Debug; //导入方法依赖的package包/类
private void parseTourGuide(Attributes attributes) throws SAXException {
    String guideName = attributes.getValue("guide");
    Debug.v("Setting tour guide to: " + guideName);
    if (locale.person_map.containsKey(guideName)) {
        locale.tour.guide = locale.person_map.get(guideName);
    }
}
 
开发者ID:Linguaculturalists,项目名称:Phoenicia,代码行数:8,代码来源:LocaleParser.java

示例10: parseTourStopMessage

import org.andengine.util.debug.Debug; //导入方法依赖的package包/类
private void parseTourStopMessage(Attributes attributes) throws SAXException {
    Debug.v("Parsing locale tour stop message for "+this.currentTourStop.getClass());
    Message newMessage = new Message();
    newMessage.sound = attributes.getValue("sound");
    newMessage.texture_src = attributes.getValue("texture");
    newMessage.text = "";
    this.currentTourStop.addMessage(newMessage);
    this.currentTourStopMessage = newMessage;
}
 
开发者ID:Linguaculturalists,项目名称:Phoenicia,代码行数:10,代码来源:LocaleParser.java

示例11: parseNumberDefinition

import org.andengine.util.debug.Debug; //导入方法依赖的package包/类
private void parseNumberDefinition(Attributes attributes) throws SAXException {
    Debug.v("Parsing locale number");
    this.currentNumber = new Number();
    this.currentNumber.name = attributes.getValue("name");
    Debug.v("Parsing locale number: "+this.currentNumber.name);
    this.currentNumber.sound = attributes.getValue("sound");
    this.currentNumber.sprite_texture = attributes.getValue("sprite");
}
 
开发者ID:Linguaculturalists,项目名称:Phoenicia,代码行数:9,代码来源:LocaleParser.java

示例12: parseLetterDefinition

import org.andengine.util.debug.Debug; //导入方法依赖的package包/类
private void parseLetterDefinition(Attributes attributes) throws SAXException {
    Debug.v("Parsing locale letter");
    this.currentLetter = new Letter();
    this.currentLetter.name = attributes.getValue("name");
    Debug.v("Parsing locale letter: "+this.currentLetter.name);
    String size = attributes.getValue("size");
    if (size == null || size == "" || size == "1x1" || size == "1x1x1") {
        this.currentLetter.columns = 1;
        this.currentLetter.rows = 1;
        this.currentLetter.height = 1;
    } else {
        try {
            String[] dimensions = size.split("x");
            this.currentLetter.columns = Integer.parseInt(dimensions[0]);
            this.currentLetter.rows = Integer.parseInt(dimensions[1]);
            if (dimensions.length > 2) {
                this.currentLetter.height = Integer.parseInt(dimensions[2]);
            } else {
                this.currentLetter.height = 1;
            }
        } catch (Exception e) {
            Debug.e("Failed to parse letter size for: "+this.currentLetter.name);
            e.printStackTrace();
        }
    }
    this.currentLetter.restriction = attributes.getValue("restrict");
    this.currentLetter.sound = attributes.getValue("sound");
    this.currentLetter.phoneme = attributes.getValue("phoneme");
    this.currentLetter.time = Integer.parseInt(attributes.getValue("time"));
    this.currentLetter.buy = Integer.parseInt(attributes.getValue("buy"));
    this.currentLetter.sell = Integer.parseInt(attributes.getValue("sell"));
    this.currentLetter.points = Integer.parseInt(attributes.getValue("points"));
    this.currentLetter.sprite_texture = attributes.getValue("sprite");
    this.currentLetter.block_texture = attributes.getValue("block");
}
 
开发者ID:Linguaculturalists,项目名称:Phoenicia,代码行数:36,代码来源:LocaleParser.java

示例13: parseWordDefinition

import org.andengine.util.debug.Debug; //导入方法依赖的package包/类
private void parseWordDefinition(Attributes attributes) throws SAXException {
    Debug.v("Parsing locale word");
    this.currentWord = new Word();
    this.currentWord.name = attributes.getValue("name");
    String size = attributes.getValue("size");
    if (size == null || size == "" || size == "1x1" || size == "1x1x1") {
        this.currentWord.columns = 1;
        this.currentWord.rows = 1;
        this.currentWord.height = 1;
    } else {
        try {
            String[] dimensions = size.split("x");
            this.currentWord.columns = Integer.parseInt(dimensions[0]);
            this.currentWord.rows = Integer.parseInt(dimensions[1]);
            if (dimensions.length > 2) {
                this.currentWord.height = Integer.parseInt(dimensions[2]);
            } else {
                this.currentWord.height = 1;
            }
        } catch (Exception e) {
            Debug.e("Failed to parse word size for: "+this.currentWord.name);
            e.printStackTrace();
        }
    }
    this.currentWord.restriction = attributes.getValue("restrict");
    this.currentWord.sound = attributes.getValue("sound");
    this.currentWord.construct = Integer.parseInt(attributes.getValue("construct"));
    this.currentWord.time = Integer.parseInt(attributes.getValue("time"));
    this.currentWord.buy = Integer.parseInt(attributes.getValue("buy"));
    this.currentWord.sell = Integer.parseInt(attributes.getValue("sell"));
    this.currentWord.points = Integer.parseInt(attributes.getValue("points"));
    this.currentWord.sprite_texture = attributes.getValue("sprite");
    this.currentWord.block_texture = attributes.getValue("block");
}
 
开发者ID:Linguaculturalists,项目名称:Phoenicia,代码行数:35,代码来源:LocaleParser.java

示例14: parseMap

import org.andengine.util.debug.Debug; //导入方法依赖的package包/类
private void parseMap(Attributes attributes) throws SAXException {
    Debug.v("Parsing locale map");
    this.locale.map_src = attributes.getValue("src");
}
 
开发者ID:Linguaculturalists,项目名称:Phoenicia,代码行数:5,代码来源:LocaleParser.java

示例15: parseShell

import org.andengine.util.debug.Debug; //导入方法依赖的package包/类
private void parseShell(Attributes attributes) throws SAXException {
    Debug.v("Parsing locale shell");
    this.locale.shell_src = attributes.getValue("src");
}
 
开发者ID:Linguaculturalists,项目名称:Phoenicia,代码行数:5,代码来源:LocaleParser.java


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