All pastes #239740 Raw Edit

Untitled

public java v1 · immutable
·published 2006-11-05 13:35 UTC
rendered paste body
View Test:					case 'I':					case 'i':  message = "Inventory = "+player.getInventory()+player.getCreatureBattle();					           break;					case '?':  message = "A-Left D-Right W-Up S-Down I-Inventory";					           break;					case 'Q':					case 'q':  myDungeon.showMessage("", "Goodbye.");					           System.exit(0);				}			}		}	}	private static void checkMove(DungeonView myDungeon, Direction d, Player player) {		switch (myDungeon.getContentsOfAdjacentSquare(d)) {			case '#':			case '+':			case '.': myDungeon.movePlayer(d);					  break;			case 'M': myDungeon.movePlayer(d);                      player.CreatureBattle();					  break;____________________________________________________________________________________________Player:	public String CreatureBattle(){                     while(one.isAlive())	   {        	one.attemptToHit(1);            one.removeLifePoints(one.doDamageToOpponnent());		    one.addLifePoints(one.drinkHealthPotion());		    	   }		   if (one.isAlive()==false)	   {		   return ("Not Alive!"+one.toString());	   }	    }	public int getInventory(){		return treasures;	}    public String getCreatureBattle(){        return return (one.toString());    } 	public static void main(String[] args)	{		creatureSub one = new creatureSub("Sumit", 5);	}}____________________________________________________________________________________________error:javac -cp .:rogueView.jar *.javaViewTest.java:76: cannot find symbolsymbol  : method getCreatureBattle()location: class rogueModel.Player                                        case 'i':  message = "Inventory = "+player.getInventory()+player.getCreatureBattle();                                                                                                        ^1 error