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:
Woody Folsom
2012-03-17 11:49:50 -04:00
parent a827ca7430
commit e1aadadde4
10 changed files with 244 additions and 0 deletions

View 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;
}
}