Results 1 to 2 of 2
- 12-02-2012, 10:36 AM #1
Member
- Join Date
- Dec 2012
- Posts
- 1
- Rep Power
- 0
Slick: what does this line of code do?
Hi
I'm not sure how this line works. Is the "MenuState" a type of casting? i would really appreciate if someone could tell me how this code works. Note: "sbg" is an instance of a State Based Game.Java Code:((MenuState) sbg.getState(BucketGame.MENUSTATE)).setLastState(this);
The method definition of setLastState is:
Thanks in advanceJava Code:public void setLastState(GameState lastState) { this.lastState = lastState; }
- 12-02-2012, 01:58 PM #2
Senior Member
- Join Date
- Oct 2011
- Location
- Sweden
- Posts
- 123
- Rep Power
- 0
Re: Slick: what does this line of code do?
You don't think you would be better of asking in a forum dedicated for this library instead of a Java forum that has nothing to do with Slick?
Slick Forums • Index page
Similar Threads
-
[Slick] Animating a GIF?
By SX16 in forum Java 2DReplies: 0Last Post: 11-27-2011, 02:52 AM -
Java Slick + Marte Engine Networked Game - Windows Specific Lag
By JavaWizKid in forum NetworkingReplies: 6Last Post: 07-25-2011, 12:51 PM -
Constructors pls explan the code line by line in comments
By vibaviattigala in forum New To JavaReplies: 1Last Post: 02-19-2011, 04:03 AM -
can you tell me what this line mean in this code?
By Laythe in forum Java AppletsReplies: 5Last Post: 10-17-2009, 11:10 PM -
What does this line of code mean?
By naxalyte in forum New To JavaReplies: 1Last Post: 11-23-2007, 09:28 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks