SUPER Space invader : Turbo edition DX - VS GOD 1.0.0
A simple space invader ripoff
Torpedo Class Reference

player's projectiles More...

#include <projectiles.h>

Inheritance diagram for Torpedo:
Collaboration diagram for Torpedo:

Public Member Functions

 Torpedo (int x, int y, playerID owner)
 constuctor for the torpedo class More...
 

Public Attributes

playerID owner
 id of the player that shot the torpedo More...
 

Detailed Description

player's projectiles

Definition at line 22 of file projectiles.h.

Constructor & Destructor Documentation

◆ Torpedo()

Torpedo::Torpedo ( int  x,
int  y,
playerID  owner 
)

constuctor for the torpedo class

Parameters
[in]x: horizontal pixel coordinate
[in]y: vertical pixel coordinate

Definition at line 12 of file projectiles.cpp.

Member Data Documentation

◆ owner

playerID Torpedo::owner

id of the player that shot the torpedo

Definition at line 28 of file projectiles.h.


The documentation for this class was generated from the following files: