Added diagram, moved screenshots

Kayne Ruse
2013-06-22 19:07:01 +10:00
parent a0ed650b15
commit 3eab268832
6 changed files with 172 additions and 0 deletions
+15
@@ -2,3 +2,18 @@
The entities in the world (including players, NPCs, monsters, trees, interactive items like chests & loot, etc.) are considered entities. Each of these will need a position in the world, possibly motion, and definitely graphics. Therefore, a base entity class that has these fetures is not out of the question. The entities in the world (including players, NPCs, monsters, trees, interactive items like chests & loot, etc.) are considered entities. Each of these will need a position in the world, possibly motion, and definitely graphics. Therefore, a base entity class that has these fetures is not out of the question.
## Planned Entity Types
* Base Entity
* Base Character
* Player Character
* Non Player Character
* Base Monster
* Tree
* Chest
* Items
* etc.
## Inheritance Tree
![inheritance tree diagram](wiki/images/inheritance-tree.png)
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Before

Width:  |  Height:  |  Size: 80 KiB

After

Width:  |  Height:  |  Size: 80 KiB

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 5.9 KiB

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

+157
@@ -0,0 +1,157 @@
<?xml version="1.0" encoding="UTF-8"?>
<java version="1.7.0_21" class="java.beans.XMLDecoder">
<object class="com.horstmann.violet.ClassDiagramGraph">
<void method="addNode">
<object class="com.horstmann.violet.ClassNode" id="ClassNode0">
<void property="name">
<void property="text">
<string>BaseEntity</string>
</void>
</void>
</object>
<object class="java.awt.geom.Point2D$Double" id="Point2D$Double0">
<void class="java.awt.geom.Point2D$Double" method="getField">
<string>x</string>
<void method="set">
<object idref="Point2D$Double0"/>
<double>505.0</double>
</void>
</void>
<void class="java.awt.geom.Point2D$Double" method="getField">
<string>y</string>
<void method="set">
<object idref="Point2D$Double0"/>
<double>111.0</double>
</void>
</void>
<void method="setLocation">
<double>505.0</double>
<double>111.0</double>
</void>
</object>
</void>
<void method="addNode">
<object class="com.horstmann.violet.ClassNode" id="ClassNode1">
<void property="name">
<void property="text">
<string>BaseCharacter</string>
</void>
</void>
</object>
<object class="java.awt.geom.Point2D$Double" id="Point2D$Double1">
<void class="java.awt.geom.Point2D$Double" method="getField">
<string>x</string>
<void method="set">
<object idref="Point2D$Double1"/>
<double>505.0</double>
</void>
</void>
<void class="java.awt.geom.Point2D$Double" method="getField">
<string>y</string>
<void method="set">
<object idref="Point2D$Double1"/>
<double>201.0</double>
</void>
</void>
<void method="setLocation">
<double>505.0</double>
<double>201.0</double>
</void>
</object>
</void>
<void method="addNode">
<object class="com.horstmann.violet.ClassNode" id="ClassNode2">
<void property="name">
<void property="text">
<string>NonPlayerCharacter</string>
</void>
</void>
</object>
<object class="java.awt.geom.Point2D$Double" id="Point2D$Double2">
<void class="java.awt.geom.Point2D$Double" method="getField">
<string>x</string>
<void method="set">
<object idref="Point2D$Double2"/>
<double>580.0</double>
</void>
</void>
<void class="java.awt.geom.Point2D$Double" method="getField">
<string>y</string>
<void method="set">
<object idref="Point2D$Double2"/>
<double>287.0</double>
</void>
</void>
<void method="setLocation">
<double>580.0</double>
<double>287.0</double>
</void>
</object>
</void>
<void method="addNode">
<object class="com.horstmann.violet.ClassNode" id="ClassNode3">
<void property="name">
<void property="text">
<string>PlayerCharacter</string>
</void>
</void>
</object>
<object class="java.awt.geom.Point2D$Double" id="Point2D$Double3">
<void class="java.awt.geom.Point2D$Double" method="getField">
<string>x</string>
<void method="set">
<object idref="Point2D$Double3"/>
<double>436.0</double>
</void>
</void>
<void class="java.awt.geom.Point2D$Double" method="getField">
<string>y</string>
<void method="set">
<object idref="Point2D$Double3"/>
<double>291.0</double>
</void>
</void>
<void method="setLocation">
<double>436.0</double>
<double>291.0</double>
</void>
</object>
</void>
<void method="connect">
<object class="com.horstmann.violet.ClassRelationshipEdge">
<void property="bentStyle">
<object class="com.horstmann.violet.BentStyle" field="VHV"/>
</void>
<void property="endArrowHead">
<object class="com.horstmann.violet.ArrowHead" field="TRIANGLE"/>
</void>
</object>
<object idref="ClassNode1"/>
<object idref="ClassNode0"/>
</void>
<void method="connect">
<object class="com.horstmann.violet.ClassRelationshipEdge">
<void property="bentStyle">
<object class="com.horstmann.violet.BentStyle" field="VHV"/>
</void>
<void property="endArrowHead">
<object class="com.horstmann.violet.ArrowHead" field="TRIANGLE"/>
</void>
</object>
<object idref="ClassNode3"/>
<object idref="ClassNode1"/>
</void>
<void method="connect">
<object class="com.horstmann.violet.ClassRelationshipEdge">
<void property="bentStyle">
<object class="com.horstmann.violet.BentStyle" field="VHV"/>
</void>
<void property="endArrowHead">
<object class="com.horstmann.violet.ArrowHead" field="TRIANGLE"/>
</void>
</object>
<object idref="ClassNode2"/>
<object idref="ClassNode1"/>
</void>
</object>
</java>