Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

169 Neutral

About cptrnet

  • Rank
  1. cptrnet

    Using the this() keyword in java?

    The purpose of this() is to call an overloaded constructor. Although the example you gave doesn't really do anything. It sets the default variables but then sets them what is passed into the other constructor over again. This is what I would use it for. class Dog{ private int age; private String Name; private String Color; public Dog(){ //Default Constructor this(1, "Unknown", "Unknown"); //Calls overloaded constructor to set defaults } public Dog(int a, String n, String C){ age = a; Name = n; Color = c; } }
  2. Your GamePanel Class isn't adding the MouseListener and MouseMotionListener. You need somthing like this addMouseListener("whatever class implements MouseListener") and/or addMouseMotionListener("whatever class implements MouseMotionListener") What is the error you are getting when you try to implement these interfaces?
  3. cptrnet

    What should I name my game?

    Relentless: Sadistic Sanctuary Just when you think your safe, around the corner lies something so sadistic that it will hurt you, but the point is you think your safe Help Shout for help in this game when you find out your sanctuary has been overrun by relentless underground cave freaks.
  4. cptrnet

    Designing a menu system

    Yes I am trying to learn how to do this. Using other peoples code is great and I would like to learn from their code but finding code is the hard part. I would just like to find out how other people are doing this so I can at least make something simple. Thanks for the link.
  5. cptrnet

    Designing a menu system

    My question is about designing a Menu System. I listed some things I thought it should have and then asked if I should go through all the trouble of building a system or just make a different one per game meaning every game I make I write code for.
  6. cptrnet

    Gamedev Statistics

    Well I like things that are not trying to be funny. If there are people just posting some random thing trying to be funny or really stupid, unless it really is, then I'll just skip over it. Something like this Or This one
  7. I just wrote a function like this. void SysTray(bool enable) { enable ? Shell_NotifyIcon(NIM_ADD, &m_sysTray) : Shell_NotifyIcon(NIM_DELETE, &m_sysTray); } I don't know if this is how you do it really, but I just ADD it to show it and then DELETE it to hide it.
  8. Cool, thanks for all the information. I will have to try that.
  9. I do have another question. Is this ok to use generics like this? I mean everytime I want to use the X and Y it has to autobox. Will that make things go slower than to create a concrete class that only accepts int's or double's or any primitive number? I guess it wouldn't be too bad to create a seperate class for each primitive there isn't that many. I don't know.
  10. cptrnet

    [java] generics problem

    Quote:Original post by SiCrane Last time I checked, Java generics did not support primitive types, only things descended from Object. So no int. Okay so there is the answer right there.
  11. cptrnet

    [java] generics problem

    It says not a statement. printScores<int>(testScores); ; expected printScores<int>(testScores);
  12. How would I know where the mouse is relative to the burger? Would I need to subract the width and height of the movie from both objects and then decide where the mouse is. If it's less than halfway move the burger right, if its more move the burger left. Also how much should I move the burger? Should I always apply gravity or when it is in the air do some velocity calculation? Can anyone point me in the right direction of where to learn the math for this specific problem. I have been around to math sites and I don't know what to look for.
  13. Can anyone help me out with some information? Even what to search for on google would help. Everything I search for I don't understand to even know if it's the thing I need. Thanks
  14. Their test app doesn't completely work it was giving some errors so thats why I tried commenting out the lines until I got to where it was fine and so I got to the first line where it includes the PHPObject.as It works fine in their app but in mine it gives that error above. I haven't found anything to say what to do. It's the first line of code in all their program examples. I can't post in their forums either because they are not accepting new accounts. Oh well, is there another way I can save the score with flash? Anyone? REVISED - I found out that they had there publish settings to Flash 6 and ActionScript 1. So I changed it and now it works. So I can only use those settings? [Edited by - cptrnet on May 16, 2006 11:17:14 AM]
  15. I have no clue what is wrong. I opened up the test flash movie that it came with and commented out all the lines but the top one #include "PHPObject.as" I did this with my test movie as well. It's funny there test movie doesn't give the error I poster above but mine does. I have no clue what to do. Is there something I am missing. Please don't tell me I have to include the path or something like in visual studio. Or include some library.
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!