Jump to content

  • Log In with Google      Sign In   
  • Create Account

#Actualrip-off

Posted 01 August 2013 - 01:53 PM

So I got a state manager class setup, so far so good.

 

My game starts with the state "menuState" and I choose my "help" option in the start menu screen to show me controllers or something.

 

So I override my class "draw(Graphics2D g)" (wich is the function for drawing the "menuState" wich draw all the menuoptions with a simple drawstring) and name it "drawHelp(Graphics2D g) and I get an error when calling drawHelp() or drawHelp(Graphics2D g).

 

Im so horrible at OOP so atm my mind is blank.. How can I solve this?

: Unredact


#5rip-off

Posted 01 August 2013 - 01:53 PM

So I got a state manager class setup, so far so good.

 

My game starts with the state "menuState" and I choose my "help" option in the start menu screen to show me controllers or something.

 

So I override my class "draw(Graphics2D g)" (wich is the function for drawing the "menuState" wich draw all the menuoptions with a simple drawstring) and name it "drawHelp(Graphics2D g) and I get an error when calling drawHelp() or drawHelp(Graphics2D g).

 

Im so horrible at OOP so atm my mind is blank.. How can I solve this?


#4Touche!

Posted 01 August 2013 - 12:38 PM

,


#3Touche!

Posted 01 August 2013 - 12:08 PM

So I got a state manager class setup, so far so good.

 

My game starts with the state "menuState" and I choose my "help" option in the start menu screen to show me controllers or something.

 

So I override my class "draw(Graphics2D g)" (wich is the function for drawing the "menuState" wich draw all the menuoptions with a simple drawstring) and name it "drawHelp(Graphics2D g) and I get an error when calling drawHelp() or drawHelp(Graphics2D g).

 

Im so horrible at OOP so atm my mind is blank.. How can I solve this?


#2Touche!

Posted 01 August 2013 - 12:06 PM

So I got a state manager class setup, so far so good.

 

My game starts with the state "menuState" and I choose my "help" option in the start menu screen to show me controllers or something.

 

So I override my class "draw(Graphics2D g)" (wich is the function for drawing the "menuState" wich draw all the menuoptions with a simple drawstring) and name it "drawHelp(Graphics2D g) and I get an error when calling drawHelp() or drawHelp(Graphics g).

 

Im so horrible at OOP so atm my mind is blank.. How can I solve this?


#1Touche!

Posted 01 August 2013 - 12:00 PM

So I got a state manager class setup, so far so good.

 

My game starts with the state "menuState" and I choose my "help" option in the start menu screen to show me controllers or something.

 

So I override my class "draw(Graphics2D g)" (wich is the function for drawing the "menuState") and name it "drawHelp(Graphics2D g) and I get an error when calling drawHelp() or drawHelp(Graphics g).

 

Im so horrible at OOP so atm my mind is blank.. How can I solve this?


PARTNERS