Class CreatePerk


  • public class CreatePerk
    extends java.lang.Object
    This class can be used to create pre-defined types of perks, or even random types of specific perks
    Version:
    (a version number or a date)
    Author:
    (your name)
    • Constructor Summary

      Constructors 
      Constructor Description
      CreatePerk​(Puzzle puzzle, int t)
      Constructor for objects of class CreatePerk where a puzzle perk is created
      CreatePerk​(Team team, int t)
      Constructor for objects of class CreatePerk where a team perk is created
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void setVars()
      sets perk behaviour depending on the type.
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CreatePerk

        public CreatePerk​(Team team,
                          int t)
        Constructor for objects of class CreatePerk where a team perk is created
        Parameters:
        Team - team, decides what team to assign the perk to.
        int - t, the specific type of predefined perk to create.
      • CreatePerk

        public CreatePerk​(Puzzle puzzle,
                          int t)
        Constructor for objects of class CreatePerk where a puzzle perk is created
        Parameters:
        Puzzle - puzzle, decides what puzzle to assign the perk to.
        int - t, the specific type of predefined perk to create.
    • Method Detail

      • setVars

        public void setVars()
        sets perk behaviour depending on the type.