mirror of
https://github.com/wahyd4/zombie.git
synced 2026-08-09 04:35:54 +10:00
Add creature model
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
package models
|
||||
|
||||
// Creature represents the normal creature
|
||||
type Creature struct {
|
||||
Coordinate Coordinate
|
||||
}
|
||||
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user