Add creature model

This commit is contained in:
2020-03-14 23:44:20 +11:00
parent 7d78166490
commit d2e8fdc352
2 changed files with 8 additions and 2 deletions
+6
View File
@@ -0,0 +1,6 @@
package models
// Creature represents the normal creature
type Creature struct {
Coordinate Coordinate
}
+2 -2
View File
@@ -6,13 +6,13 @@ const (
minimumValueOnAXis = 0
)
// Zombie presents a zombie object
// Zombie represents a zombie object
type Zombie struct {
GridSize int
Coordinate Coordinate
}
// Coordinate presents the location in the grid of the zombie
// Coordinate represents the location in the grid of the zombie
type Coordinate struct {
XAxis int
YAxis int