Changeset 48fcce8fd5516eca852af6071fd496bec0343a26
- Timestamp:
- 12/24/07 11:11:48
(1 year ago)
- Author:
- Christopher Jung <bktheg@web.de>
- git-committer:
- Christopher Jung <bktheg@web.de> 1198491108 +0100
- git-parent:
[3ecc372665ff56d9abc3995a7c7276beeb861b25]
- git-author:
- Christopher Jung <bktheg@web.de> 1198491108 +0100
- Message:
Die ScriptFactories? tun nun das was ihr Name vermuten laesst
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r177e8e0 |
r48fcce8 |
|
| 32 | 32 | */ |
|---|
| 33 | 33 | public class DSActionScriptFactory extends DSScriptFactory { |
|---|
| 34 | | |
|---|
| 35 | 34 | @Override |
|---|
| 36 | 35 | public List<String> getNames() { |
|---|
| 37 | 36 | List<String> list = new ArrayList<String>(super.getNames()); |
|---|
| 38 | | list.add("dsquestscript"); |
|---|
| 39 | | list.add("DSQuestScript"); |
|---|
| | 37 | list.add("dsactionscript"); |
|---|
| | 38 | list.add("DSActionScript"); |
|---|
| 40 | 39 | |
|---|
| 41 | 40 | return Collections.unmodifiableList(list); |
|---|
| … | … | |
| 43 | 42 | |
|---|
| 44 | 43 | public ScriptEngine getScriptEngine() { |
|---|
| 45 | | return new ScriptParser(this, ScriptParser.NameSpace.QUEST); |
|---|
| | 44 | return new ScriptParser(this, ScriptParser.NameSpace.ACTION); |
|---|
| 46 | 45 | } |
|---|
| 47 | | |
|---|
| 48 | 46 | } |
|---|
| r177e8e0 |
r48fcce8 |
|
| 32 | 32 | */ |
|---|
| 33 | 33 | public class DSQuestScriptFactory extends DSScriptFactory { |
|---|
| 34 | | |
|---|
| 35 | 34 | @Override |
|---|
| 36 | 35 | public List<String> getNames() { |
|---|
| 37 | 36 | List<String> list = new ArrayList<String>(super.getNames()); |
|---|
| 38 | | list.add("dsactionscript"); |
|---|
| 39 | | list.add("DSActionScript"); |
|---|
| | 37 | list.add("dsquestscript"); |
|---|
| | 38 | list.add("DSQuestScript"); |
|---|
| 40 | 39 | |
|---|
| 41 | 40 | return Collections.unmodifiableList(list); |
|---|
| … | … | |
| 43 | 42 | |
|---|
| 44 | 43 | public ScriptEngine getScriptEngine() { |
|---|
| 45 | | return new ScriptParser(this, ScriptParser.NameSpace.ACTION); |
|---|
| | 44 | return new ScriptParser(this, ScriptParser.NameSpace.QUEST); |
|---|
| 46 | 45 | } |
|---|
| 47 | | |
|---|
| 48 | 46 | } |
|---|