Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added class diagram to show relationship between a weapon and infantr…
…y classes
  • Loading branch information
Billy Gallagher authored and Billy Gallagher committed Feb 15, 2016
1 parent cede2f4 commit ca3d83c
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 0 deletions.
Binary file added docs/ClassDiagram.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
88 changes: 88 additions & 0 deletions docs/ClassDiagram.ucls
@@ -0,0 +1,88 @@
<?xml version="1.0" encoding="UTF-8"?>
<class-diagram version="1.1.9" icons="true" automaticImage="PNG" always-add-relationships="false" generalizations="true"
realizations="true" associations="true" dependencies="false" nesting-relationships="true" router="FAN">
<class id="1" language="java" name="megamek.common.weapons.infantry.InfantryArchaicAxeWeapon" project="CSE2102MegaMek"
file="/CSE2102MegaMek/src/megamek/common/weapons/infantry/InfantryArchaicAxeWeapon.java" binary="false"
corner="BOTTOM_RIGHT">
<position height="-1" width="-1" x="194" y="522"/>
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
sort-features="false" accessors="true" visibility="true">
<attributes public="true" package="true" protected="true" private="true" static="true"/>
<operations public="true" package="true" protected="true" private="true" static="true"/>
</display>
</class>
<class id="2" language="java" name="megamek.common.weapons.infantry.InfantryWeapon" project="CSE2102MegaMek"
file="/CSE2102MegaMek/src/megamek/common/weapons/infantry/InfantryWeapon.java" binary="false" corner="BOTTOM_RIGHT">
<position height="219" width="304" x="57" y="85"/>
<display autosize="false" stereotype="true" package="true" initial-value="false" signature="true"
sort-features="false" accessors="true" visibility="true">
<attributes public="true" package="true" protected="true" private="true" static="true"/>
<operations public="true" package="true" protected="true" private="true" static="true"/>
</display>
</class>
<class id="3" language="java" name="megamek.common.Infantry" project="CSE2102MegaMek"
file="/CSE2102MegaMek/src/megamek/common/Infantry.java" binary="false" corner="BOTTOM_RIGHT">
<position height="273" width="227" x="549" y="6"/>
<display autosize="false" stereotype="true" package="true" initial-value="false" signature="true"
sort-features="false" accessors="true" visibility="true">
<attributes public="true" package="true" protected="true" private="true" static="true"/>
<operations public="true" package="true" protected="true" private="true" static="true"/>
</display>
</class>
<class id="4" language="java" name="megamek.common.BattleArmor" project="CSE2102MegaMek"
file="/CSE2102MegaMek/src/megamek/common/BattleArmor.java" binary="false" corner="BOTTOM_RIGHT">
<position height="232" width="381" x="420" y="363"/>
<display autosize="false" stereotype="true" package="true" initial-value="false" signature="true"
sort-features="false" accessors="true" visibility="true">
<attributes public="true" package="true" protected="true" private="true" static="true"/>
<operations public="true" package="true" protected="true" private="true" static="true"/>
</display>
</class>
<class id="5" language="java" name="megamek.common.verifier.TestInfantry" project="CSE2102MegaMek"
file="/CSE2102MegaMek/src/megamek/common/verifier/TestInfantry.java" binary="false" corner="BOTTOM_RIGHT">
<position height="-1" width="-1" x="1011" y="298"/>
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
sort-features="false" accessors="true" visibility="true">
<attributes public="true" package="true" protected="true" private="true" static="true"/>
<operations public="true" package="true" protected="true" private="true" static="true"/>
</display>
</class>
<association id="6">
<end type="SOURCE" refId="3" navigable="false">
<attribute id="7" name="secondW"/>
<multiplicity id="8" minimum="0" maximum="1"/>
</end>
<end type="TARGET" refId="2" navigable="true"/>
<display labels="true" multiplicity="true"/>
</association>
<generalization id="9">
<end type="SOURCE" refId="4"/>
<end type="TARGET" refId="3"/>
</generalization>
<association id="10">
<end type="SOURCE" refId="5" navigable="false">
<attribute id="11" name="infantry"/>
<multiplicity id="12" minimum="0" maximum="1"/>
</end>
<end type="TARGET" refId="3" navigable="true"/>
<display labels="true" multiplicity="true"/>
</association>
<association id="13">
<end type="SOURCE" refId="3" navigable="false">
<attribute id="14" name="primaryW"/>
<multiplicity id="15" minimum="0" maximum="1"/>
</end>
<end type="TARGET" refId="2" navigable="true"/>
<display labels="true" multiplicity="true"/>
</association>
<generalization id="16">
<end type="SOURCE" refId="1"/>
<end type="TARGET" refId="2"/>
</generalization>
<classifier-display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
sort-features="false" accessors="true" visibility="true">
<attributes public="true" package="true" protected="true" private="true" static="true"/>
<operations public="true" package="true" protected="true" private="true" static="true"/>
</classifier-display>
<association-display labels="true" multiplicity="true"/>
</class-diagram>

0 comments on commit ca3d83c

Please sign in to comment.