Skip to content

Commit

Permalink
update the model to text transformation
Browse files Browse the repository at this point in the history
  • Loading branch information
UrsZeidler committed Apr 27, 2014
1 parent d7ffb88 commit ed2db9b
Show file tree
Hide file tree
Showing 8 changed files with 2,590 additions and 1,984 deletions.
2 changes: 1 addition & 1 deletion de.urszeidler.shr5.acceleo/buildstandalone.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
-->
<!-- Change the value of the property SOURCE_FOLDERS to match the configuration of your project. -->
<target name="compile">
<copy todir="${SOURCE_FOLDER}">
<copy overwrite="true" todir="${SOURCE_FOLDER}">
<fileset dir="${OUTPUT_FOLDER}/" id="id">
<include name="**/*emtl" />

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,15 @@
[query public calcKarmaCosts(arg0 : Integer, arg1 : Integer, arg2 : Integer) : Integer
= invoke('de.urszeidler.eclipse.shr5.util.ShadowrunTools', 'calcKarmaCosts(, , )', Sequence{arg0, arg1, arg2})
/]
[**
* The documentation of the query
* @param arg0
* @param arg1
* @param arg2
*/]
[query public essenzToFloat(arg0 : Integer) : String
= invoke('de.urszeidler.eclipse.shr5.util.ShadowrunTools', 'essenzToFloat(,)', Sequence{arg0})
/]

[**
* The documentation of the query
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
[template public printPersonaBasic(persona : AbstraktPersona){ emtpty :String = ' ' ;}]
['['/]b[']'/]Attributes:[ '[' /]/b[']'/]
[printAttributes(persona)/]
[printTextPlusSpace('Essence', emtpty)/] [persona.essenz /]
[printTextPlusSpace('Essence', emtpty)/] [ (persona.essenz)/100 /]
[printTextPlusSpace('Initiative', emtpty)/] [persona.initative/]+[persona.initativWuerfel/]d6
[printTextPlusSpace('Condition', emtpty)/] [persona.oclAsType(KoerperPersona).zustandKoerperlichMax/]/[persona.oclAsType(KoerperPersona).zustandGeistigMax/]
[printTextPlusSpace('Armor', emtpty)/] [persona.oclAsType(KoerperPersona).panzer/]
Expand All @@ -82,7 +82,7 @@ Physical [persona.oclAsType(KoerperPersona).koerperlich/] / Mental [persona.oclA
[**
* Print the qualities
*/]
[template public printAdvacements(gears : OrderedSet(Changes)) ? (not gears->isEmpty()) { emtpty :String = ' ' ;}]
[template public printAdvacements(gears : OrderedSet(Changes)) ? (not gears->isEmpty()) { emtpty :String = ' ' ;}]
[ '[' /]b[']'/]Karma:[ '[' /]/b[']'/]
[for (ag : Changes | gears)]
[ printTextPlusSpace(getText(ag),emtpty) /] [ag.karmaCost/]
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
[comment encoding = UTF-8 /]
[module boardShr5GeneratorSheet('http://urszeidler.de/shr5/1.0', 'http://urszeidler.de/shr5mngt/1.0', 'http://www.eclipse.org/emf/2002/Ecore')/]
[import de::urszeidler::shr5::acceleo::common::ShadowrunTools /]
[import de::urszeidler::shr5::acceleo::common::ShadowrunManagmentTools /]
[import de::urszeidler::shr5::acceleo::sheets::boardCharacterSheet/]
[import de::urszeidler::shr5::acceleo::common::ShadowrunSheetTools /]

Expand All @@ -20,7 +22,15 @@
[/template]

[template private printGeneratorValues(aShr5Generator : Shr5Generator){aManagedCharacter : ManagedCharacter = aShr5Generator.character;}]
Generator system [getText(aShr5Generator.generator)/]
Generator system [getText(aShr5Generator.generator)/] Karma to spend [aShr5Generator.shr5Generator.karmaPoints /]
Karma to resource [aShr5Generator.karmaToResource/]
Resources complete [aShr5Generator.resourcen.resource + calcKarmaToResources(aShr5Generator, aShr5Generator.shr5Generator) /]
Connections points [calcConnectionsPoints(aManagedCharacter, aShr5Generator.shr5Generator) /]
Knowledge skills [calcKnownlegeSkillPoints(aManagedCharacter, aShr5Generator.shr5Generator) /]
karma worth [calcCompleteKaramaSpend(aManagedCharacter, aShr5Generator.shr5Generator.characterAdvancements)/]

Start Karma [aShr5Generator.startKarma /]
Start Resources [aShr5Generator.startResources /]
[/template]

[**
Expand All @@ -33,4 +43,6 @@ Generator system [getText(aShr5Generator.generator)/]
[getText(aShr5Generator.metaType)/]
[getText(aShr5Generator.magic)/]
[getText(aShr5Generator.resourcen)/]

[printGeneratorValues(aShr5Generator)/]
[/template]
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
<takesTypesFrom href="http://www.eclipse.org/emf/2002/Ecore#/"/>
</input>
<imports href="../common/ShadowrunTools.emtl#/0"/>
<imports href="../common/ShadowrunManagmentTools.emtl#/0"/>
<imports href="../common/ShadowrunSheetTools.emtl#/0"/>
<imports href="../common/shr5EEnumhelper.emtl#/0"/>
<imports href="../common/shr5ManagementEEnumhelper.emtl#/0"/>
<imports href="platform:/resource/de.urszeidler.shr5.acceleo/bin/de/urszeidler/shr5/acceleo/common/ShadowrunManagmentTools.emtl#/0"/>
<imports href="platform:/resource/de.urszeidler.shr5.acceleo/bin/de/urszeidler/shr5/acceleo/common/ShadowrunSheetTools.emtl#/0"/>
<imports href="platform:/resource/de.urszeidler.shr5.acceleo/bin/de/urszeidler/shr5/acceleo/common/shr5EEnumhelper.emtl#/0"/>
<imports href="platform:/resource/de.urszeidler.shr5.acceleo/bin/de/urszeidler/shr5/acceleo/common/shr5ManagementEEnumhelper.emtl#/0"/>
<ownedModuleElement xsi:type="mtl:Template" name="officalCharacterSheetManagedCharacter" visibility="Public" main="true">
<body xsi:type="mtl:TemplateInvocation" definition="/0/printPageOne">
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/>
Expand Down Expand Up @@ -611,7 +611,7 @@
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="&quot;>"/>
<body xsi:type="mtl:TemplateInvocation">
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/>
<definition href="../common/ShadowrunSheetTools.emtl#/0/printTextPlusSpace"/>
<definition href="platform:/resource/de.urszeidler.shr5.acceleo/bin/de/urszeidler/shr5/acceleo/common/ShadowrunSheetTools.emtl#/0/printTextPlusSpace"/>
<argument xsi:type="ocl.ecore:PropertyCallExp">
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/>
<source xsi:type="ocl.ecore:PropertyCallExp">
Expand Down Expand Up @@ -703,7 +703,7 @@
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="&lt;/tspan>&lt;/text>&#xA;&lt;text&#xA; style=&quot;font-size:12px;line-height:185.00000238%&quot;&#xA; y=&quot;-626&quot;&#xA; x=&quot;115&quot;&#xA; id=&quot;name-sex-8&quot;&#xA; sodipodi:linespacing=&quot;185%&quot;&#xA; transform=&quot;scale(1,-1)&quot;>&lt;tspan&#xA; style=&quot;font-size:7px;font-variant:normal;font-weight:bold;font-stretch:condensed;line-height:185.00000238%;writing-mode:lr-tb;fill:#272425;fill-opacity:1;fill-rule:nonzero;stroke:none;font-family:Univers LT Std 47 Cn Lt;-inkscape-font-specification:UniversLTStd-BoldCn&quot;&#xA; x=&quot;115&quot;&#xA; y=&quot;-626&quot;&#xA; sodipodi:role=&quot;line&quot;&#xA; id=&quot;tspan5996-5-1-0&quot;>"/>
<body xsi:type="mtl:TemplateInvocation">
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/>
<definition href="../common/shr5ManagementEEnumhelper.emtl#/0/toLocalizedSexString"/>
<definition href="platform:/resource/de.urszeidler.shr5.acceleo/bin/de/urszeidler/shr5/acceleo/common/shr5ManagementEEnumhelper.emtl#/0/toLocalizedSexString"/>
<argument xsi:type="ocl.ecore:PropertyCallExp">
<eType xsi:type="ecore:EEnum" href="http://urszeidler.de/shr5mngt/1.0#//Sex"/>
<source xsi:type="ocl.ecore:VariableExp" name="aManagedCharacter" referredVariable="/0/printCharacterData/aManagedCharacter">
Expand Down Expand Up @@ -1497,7 +1497,7 @@
<contents xsi:type="ocl.ecore:Constraint"/>
</eAnnotations>
<eAnnotations source="MTL">
<references href="../common/ShadowrunSheetTools.emtl#/0/printTextPlusSpace"/>
<references href="platform:/resource/de.urszeidler.shr5.acceleo/bin/de/urszeidler/shr5/acceleo/common/ShadowrunSheetTools.emtl#/0/printTextPlusSpace"/>
</eAnnotations>
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/>
<eParameters name="text">
Expand All @@ -1512,7 +1512,7 @@
<contents xsi:type="ocl.ecore:Constraint"/>
</eAnnotations>
<eAnnotations source="MTL">
<references href="../common/shr5ManagementEEnumhelper.emtl#/0/toLocalizedSexString"/>
<references href="platform:/resource/de.urszeidler.shr5.acceleo/bin/de/urszeidler/shr5/acceleo/common/shr5ManagementEEnumhelper.emtl#/0/toLocalizedSexString"/>
</eAnnotations>
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/>
<eParameters name="ee">
Expand Down

0 comments on commit ed2db9b

Please sign in to comment.