Introduce projectile.Position() utility

This commit is contained in:
Maas Lalani 2021-09-06 15:56:16 -04:00 committed by Christian Rocha
parent 862fb70b7b
commit 75a028d558

View File

@ -76,3 +76,8 @@ func (p *Projectile) Update() Point {
return p.pos
}
// Position returns the position of the projectile
func (p *Projectile) Position() Point {
return p.pos
}