[Questgen-commits] SF.net SVN: questgen: [9] trunk
Status: Planning
Brought to you by:
rfboehme
From: <rfb...@us...> - 2008-02-19 13:52:35
|
Revision: 9 http://questgen.svn.sourceforge.net/questgen/?rev=9&view=rev Author: rfboehme Date: 2008-02-19 05:52:11 -0800 (Tue, 19 Feb 2008) Log Message: ----------- Added a couple of stub methods, changed doc some. Modified Paths: -------------- trunk/docs/Quest Generator - Inital Work Spec.txt trunk/src/questgen/CharacterGoal.lua trunk/src/questgen/CharacterProblem.lua trunk/src/questgen/Quest.lua trunk/src/questgen/QuestGoal.lua trunk/src/questgen/Scene.lua trunk/src/questgen/Story.lua trunk/src/questgen/StoryCharacter.lua Modified: trunk/docs/Quest Generator - Inital Work Spec.txt =================================================================== --- trunk/docs/Quest Generator - Inital Work Spec.txt 2008-01-16 02:40:45 UTC (rev 8) +++ trunk/docs/Quest Generator - Inital Work Spec.txt 2008-02-19 13:52:11 UTC (rev 9) @@ -83,23 +83,26 @@ -To create a quest: +To create a story: 1. Create a character or pick one from the world. -2. Create a purpose / problem for the character. +2. Create a set of purposes / problems for the character. -3. Create a quest for the character. +3. Create a end goal for the character -4. The quest creates a 'start' scene: +4. Create or pick objects and characters to get to the end goal. -5. The quest does not create -6. The quest creates an 'end' scene, where the character has the problem resolved. +- The quest creates a 'start' scene: +- The quest does not create intermediate scenes yet. +- The quest creates an 'end' scene, where the character has the problem resolved. + + To create a character: 1. Pick a location for the character. (or location is provided). Modified: trunk/src/questgen/CharacterGoal.lua =================================================================== --- trunk/src/questgen/CharacterGoal.lua 2008-01-16 02:40:45 UTC (rev 8) +++ trunk/src/questgen/CharacterGoal.lua 2008-02-19 13:52:11 UTC (rev 9) @@ -4,7 +4,19 @@ --]] -module(..., package.seeall) +QuestgenCharacterGoal = {} +local goalType; +local goalTarget; +function QuestgenCharacterGoal:new(o) + o = o or {} + setmetatable(o, self) + self.__index = self + return o +end +function QuestgenCharacterGoal:retTwo() + return retTwoNum; +end + Modified: trunk/src/questgen/CharacterProblem.lua =================================================================== --- trunk/src/questgen/CharacterProblem.lua 2008-01-16 02:40:45 UTC (rev 8) +++ trunk/src/questgen/CharacterProblem.lua 2008-02-19 13:52:11 UTC (rev 9) @@ -3,8 +3,3 @@ This is a module for a story. --]] - -module(..., package.seeall) - - - Modified: trunk/src/questgen/Quest.lua =================================================================== --- trunk/src/questgen/Quest.lua 2008-01-16 02:40:45 UTC (rev 8) +++ trunk/src/questgen/Quest.lua 2008-02-19 13:52:11 UTC (rev 9) @@ -3,8 +3,3 @@ This is a module for a story. --]] - -module(..., package.seeall) - - - Modified: trunk/src/questgen/QuestGoal.lua =================================================================== --- trunk/src/questgen/QuestGoal.lua 2008-01-16 02:40:45 UTC (rev 8) +++ trunk/src/questgen/QuestGoal.lua 2008-02-19 13:52:11 UTC (rev 9) @@ -3,8 +3,3 @@ This is a module for a story. --]] - -module(..., package.seeall) - - - Modified: trunk/src/questgen/Scene.lua =================================================================== --- trunk/src/questgen/Scene.lua 2008-01-16 02:40:45 UTC (rev 8) +++ trunk/src/questgen/Scene.lua 2008-02-19 13:52:11 UTC (rev 9) @@ -3,8 +3,3 @@ This is a module for a story. --]] - -module(..., package.seeall) - - - Modified: trunk/src/questgen/Story.lua =================================================================== --- trunk/src/questgen/Story.lua 2008-01-16 02:40:45 UTC (rev 8) +++ trunk/src/questgen/Story.lua 2008-02-19 13:52:11 UTC (rev 9) @@ -3,7 +3,3 @@ This is a module for a story. --]] - -module(..., package.seeall) - - Modified: trunk/src/questgen/StoryCharacter.lua =================================================================== --- trunk/src/questgen/StoryCharacter.lua 2008-01-16 02:40:45 UTC (rev 8) +++ trunk/src/questgen/StoryCharacter.lua 2008-02-19 13:52:11 UTC (rev 9) @@ -4,6 +4,28 @@ --]] -module(..., package.seeall) +QuestgenStoryCharacter = {} +local status; +local location; +local goalList; +local relationshipList; +local homeLocation; +local currentLocation; +local gender; +local purpose; +local jobType; +function QuestgenStoryCharacter:new(o) + o = o or {} + setmetatable(o, self) + self.__index = self + return o +end + +function QuestgenStoryCharacter:addGoal(goal) +end + +function QuestgenStoryCharacter:addRelationship(relationship) + return retTwoNum; +end \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |