diff options
Diffstat (limited to 'src/Enemy2.cpp')
| -rw-r--r-- | src/Enemy2.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Enemy2.cpp b/src/Enemy2.cpp index e89fbb2..a32b8d9 100644 --- a/src/Enemy2.cpp +++ b/src/Enemy2.cpp @@ -21,3 +21,8 @@ void Enemy2::izracunajpoz(float igracx,float igracy,float dt) x+=vx*dt; y+=vy*dt; } +void Enemy2::respawn(int sirina,int visina) +{ + Entity::respawn(sirina,visina); + vx=vy=0; +} |
