-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d903f16
commit 1121667
Showing
19 changed files
with
830 additions
and
478 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,23 @@ | ||
public class Barricade extends Construct { | ||
private Object speedModifier; | ||
private int speedModifier; | ||
|
||
/** | ||
* visszater a a lassitas mertekevel | ||
* @return speedModifier | ||
*/ | ||
public int getSpeedModifier() { | ||
throw new UnsupportedOperationException(); | ||
System.out.println("--> Barricade.getSpeedModifier()"); | ||
System.out.println("<-- modifier"); | ||
return speedModifier; | ||
} | ||
|
||
/** | ||
* A Barricade konstruktora | ||
*/ | ||
public Barricade() | ||
{ | ||
System.out.println("--> Barricade()"); | ||
type = "Barricade"; //Beállítjuk a saját típusát | ||
speedModifier = 2 ; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,23 @@ | ||
public class Construct { | ||
protected String type; | ||
public Updater unnamed_Updater_; | ||
public MagicGem _construct; | ||
|
||
protected MagicGem gem; | ||
|
||
/** | ||
* Épület típusával tér vissza | ||
* @return a típus amivel visszatér | ||
*/ | ||
public String getType() { | ||
return this.type; | ||
System.out.println("--> Construct.getType()");// | ||
System.out.println("<-- towerType");// | ||
return this.type;// | ||
} | ||
|
||
|
||
/** | ||
* beállítja a gem attribútumot a kapott értékre | ||
* @param gem - a kapott érték | ||
*/ | ||
public void setMagicGem(MagicGem gem) { | ||
throw new UnsupportedOperationException(); | ||
System.out.println("--> Construct.setMagicGem("+gem+")");// | ||
this.gem = gem;// | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,11 @@ | ||
public class Dwarf extends Enemy { | ||
|
||
/** | ||
* A dwarf konstruktora, beállítsa az enemy típusát 'Dwarf'-ra | ||
*/ | ||
|
||
public Dwarf() { | ||
System.out.println("--> Dwarf() "); | ||
this.type = "Dwarf"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,10 @@ | ||
public class Elf extends Enemy { | ||
|
||
/** | ||
* Az Elf konstruktora, amely beállítja az Enemy típusát 'Elf' -re | ||
*/ | ||
public Elf() { | ||
System.out.println("--> <<create>> "); | ||
this.type = "Elf"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,10 @@ | ||
public class Hobbit extends Enemy { | ||
|
||
/** | ||
* Hobbit osztaly konstruktora. | ||
*/ | ||
public Hobbit() { | ||
System.out.println("--> <<create>> Hobbit"); | ||
this.type = "Hobbit"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,10 @@ | ||
public class Human extends Enemy { | ||
|
||
/** | ||
* Human osztály konstruktora. | ||
*/ | ||
public Human() { | ||
System.out.println("--> <<create>> "); | ||
this.type = "Human"; | ||
} | ||
} |
Oops, something went wrong.