Click here to Skip to main content
   

Java

 
GeneralRe: Disadvantages of JAVA in Network Programming Pinmemberirfanulla sharieff29-Jan-13 22:57 
AnswerRe: Disadvantages of JAVA in Network Programming Pinmemberpasztorpisti30-Jan-13 15:22 
QuestionUnable to load an android application in the emulator PinmemberPadma4u27-Jan-13 21:07 
AnswerRe: Unable to load an android application in the emulator PinmemberMember 859548827-Jan-13 22:25 
AnswerRe: Unable to load an android application in the emulator Pinmemberirfanulla sharieff28-Jan-13 17:26 
GeneralRe: Unable to load an android application in the emulator (Solved) PinmemberPadma4u29-Jan-13 2:46 
Questionggg Pinmembermary joy ortega26-Jan-13 7:44 
QuestionAssistance with helper method please? Pinmemberkurt126-Jan-13 7:09 
Hi,
I have recently read a book by David Brackeen called 'Developing Games in Java'. I understand the code in the book and am currently modifying the game engine however; I have come across a problem whilst trying to create the player inventory.

I am using code in beanshell scripts to update objects in the game and looking through different scripts by David Brackeen I came across this code, ’player.getInventory().setRedKey(true);’. I understand it means ‘if the player object’s inventory does not have the red key after a red key collision, add the key to the inventory’.
 
My question is how would I write this code into my netbeans IDE (so it is recognised in the script) as nesting the ‘setRedKey(Boolean)’ brings up errors when I put it in the ‘getInventory()’ helper method of my GameObject class.
AnswerRe: Assistance with helper method please? PinmvpRichard MacCutchan27-Jan-13 23:51 
GeneralRe: Assistance with helper method please? Pinmemberkurt128-Jan-13 9:34 
QuestionJ2EE PinmemberMaddyHanagal23-Jan-13 20:26 
AnswerRe: J2EE PinmvpRichard MacCutchan24-Jan-13 0:03 
QuestionJava Security PinmemberTNCaver23-Jan-13 4:57 
AnswerRe: Java Security PinmvpRichard MacCutchan23-Jan-13 6:07 
QuestionException PinmemberIICTECH23-Jan-13 2:38 
AnswerRe: Exception PinmvpRichard MacCutchan23-Jan-13 3:24 
GeneralRe: Exception PinmemberIICTECH24-Jan-13 2:02 
GeneralRe: Exception Pinmembercubocik29-Jan-13 2:49 
QuestionHibernate Pinmembersathish coder22-Jan-13 2:07 
AnswerRe: Hibernate PinmvpSandeep Mewara22-Jan-13 3:37 
AnswerRe: Hibernate PinmemberSultan Akyol22-Jan-13 10:25 
AnswerRe: Hibernate PinmemberGREG_DORIANcod25-Jan-13 12:48 
QuestionFor Java Project Pinmembersakurahito18-Jan-13 18:42 
AnswerRe: For Java Project PinmvpRichard MacCutchan19-Jan-13 0:00 
AnswerRe: For Java Project Pinmembercubocik22-Jan-13 3:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.150128.1 | Last Updated 28 Jan 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid