Search:

Type: Posts; User: frogfury

Search: Search took 0.15 seconds.

  1. Replies
    6
    Views
    1,890

    Re: Identifying calling object

    Reading copeg's example I just realized that I had set my main class to private. No wonder it wasn't working...

    Thanks a lot for your time guys!:-bd
  2. Replies
    6
    Views
    1,890

    Re: Identifying calling object

    It does indeed return the class "player". Is there any way to find out if the method was called with regards to a subclass like orc, elf etc?
  3. Replies
    6
    Views
    1,890

    Identifying calling object

    Hey guys!

    I'm trying to do this:


    int x;
    x = orc.getFrags; //orc extends player

    In class player I have:
Results 1 to 3 of 3