Implemented stub functionality for determining player Profile, level Archetype and generating Level Components using a simple grammar.
See new method calls in MyNewLevel for an example of this level creation pipeline.
This commit is contained in:
29
src/dk/itu/mario/level/generator/PlayerProfile.java
Normal file
29
src/dk/itu/mario/level/generator/PlayerProfile.java
Normal file
@@ -0,0 +1,29 @@
|
||||
package dk.itu.mario.level.generator;
|
||||
|
||||
public class PlayerProfile {
|
||||
//From Bartle/Yee models of player psychology: achiever, killer, explorer, manipulator
|
||||
public enum TYPE { RUNNER, SHOOTER, JUMPER, BUMPER}
|
||||
//Dreyfus model of skill acquisition:
|
||||
public enum SKILL_LEVEL { NOVICE, BEGINNER, COMPETENT, PROFICIENT, EXPERT}
|
||||
|
||||
private SKILL_LEVEL skillLevel;
|
||||
private TYPE type;
|
||||
|
||||
public PlayerProfile(SKILL_LEVEL skillLevel, TYPE type) {
|
||||
this.skillLevel = skillLevel;
|
||||
this .type = type;
|
||||
}
|
||||
|
||||
public SKILL_LEVEL getSkillLevel() {
|
||||
return skillLevel;
|
||||
}
|
||||
|
||||
public TYPE getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return skillLevel + " " + type;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user