Thread: Abstracts + @Override + returning lvl

Results 1 to 3 of 3
  1. #1 Abstracts + @Override + returning lvl 
    Registered Member wildking72's Avatar
    Join Date
    Sep 2011
    Age
    27
    Posts
    506
    Thanks given
    62
    Thanks received
    36
    Rep Power
    11
    I want to make an abstract like this
    Code:
    public abstract int getRequiredLevel();
    And I want it to return the required level
    Code:
    @Override
    	public int getRequiredLevel() {
    		return 55;
    	}
    But I have no idea how to use the @Override or abstract in java
    Examples, examples, examples. Please?

    I want this because all of the spells in Dementhium [637] have no requirement
    Reply With Quote  
     

  2. #2  
    Donator


    Join Date
    Sep 2011
    Posts
    1,086
    Thanks given
    390
    Thanks received
    406
    Rep Power
    327
    Required levels are defined in the XML file.
    Reply With Quote  
     

  3. #3  
    Registered Member wildking72's Avatar
    Join Date
    Sep 2011
    Age
    27
    Posts
    506
    Thanks given
    62
    Thanks received
    36
    Rep Power
    11
    Mine are in an xml file named MagicSpells.xml looking like this
    Code:
    <magicSpell>
    		<spellHandler>org.dementhium.model.combat.impl.spells.modern.HellSurge</spellHandler>
    		 <spellId>98</spellId>
    		<spellType>MODERN</spellType>
    	</magicSpell>
    No requirements and I can cast any spell at level 1
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Free Abstracts
    By Appeal Canownueasy in forum Requests
    Replies: 7
    Last Post: 10-18-2010, 05:56 PM
  2. @override
    By Typhoeus in forum Help
    Replies: 5
    Last Post: 01-20-2010, 05:09 AM
  3. 2 abstracts
    By Arcane in forum Showcase
    Replies: 2
    Last Post: 12-18-2009, 01:34 AM
  4. Java - @Override Annotation
    By Roger in forum Application Development
    Replies: 11
    Last Post: 08-14-2009, 05:39 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •