Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.42 KB | None | 0 0
  1. package us.legioncraft.legions.champions;
  2.  
  3. import org.bukkit.entity.Player;
  4.  
  5. import us.legioncraft.legions.entities.IngamePlayer;
  6. import us.legioncraft.legions.entities.TeamColor;
  7. import us.legioncraft.legions.spells.Spell;
  8.  
  9. public class Champion {
  10.     private String name;
  11.     private IngamePlayer igPlayer;
  12.     private ChampionType type;
  13.     private Spell spell1;
  14.     private Spell spell2;
  15.     private Spell spell3;
  16.     private Spell spell4;
  17.     private Player player;
  18.     private int lvl;
  19.    
  20.     public Champion(String name, ChampionType type, Spell s1, Spell s2, Spell s3, Spell s4, Player player, TeamColor color, String id){
  21.         this.name = name;
  22.         this.type = type;
  23.         this.spell1 = s1;
  24.         this.spell2 = s2;
  25.         this.spell3 = s3;
  26.         this.spell4 = s4;
  27.         this.player = player;
  28.        
  29.         this.igPlayer = new IngamePlayer(player, this, color, id);
  30.         lvl = 1;
  31.     }
  32.    
  33.     public ChampionType getType(){
  34.         return type;
  35.     }
  36.    
  37.     public String getName(){
  38.         return name;
  39.     }
  40.    
  41.     public Spell getSpell1(){
  42.         return spell1;
  43.     }
  44.    
  45.     public Spell getSpell2(){
  46.         return spell2;
  47.     }
  48.    
  49.     public Spell getSpell3(){
  50.         return spell3;
  51.     }
  52.    
  53.     public Spell getSpell4(){
  54.         return spell4;
  55.     }
  56.    
  57.     public Player getPlayer(){
  58.         return player;
  59.     }
  60.    
  61.     public IngamePlayer getIgPlayer(){
  62.         return igPlayer;
  63.     }
  64.    
  65.     public int getLevel(){
  66.         return lvl;
  67.     }
  68.    
  69.     public void setLevel(int lvl){
  70.         this.lvl = lvl;
  71.     }
  72.    
  73.     public void addLevels(int lvl){
  74.         this.lvl = lvl;
  75.     }
  76.    
  77. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement