-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vehicle.cpp
22 lines (21 loc) · 898 Bytes
/
Vehicle.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//
// Created by austin4e on 9/20/15.
//
#include "Vehicle.h"
//constructor
Vehicle::Vehicle(int x, int y, int curHealth, int maxHealth, int frontAngle, int team, int width,
int height, int storedPowerup, int activePowerup, bool isMe)
{
this->x = x;
this->y = y; //coordinates on game board
this->frontAngle = frontAngle; //current angle the vehicle is facing
this->curHealth = curHealth; //vehicle health
this->maxHealth = maxHealth;
this->team = team; //vehicle team ID (0 = red, 1 = blue)
this->width = width;
this->height = height; //vehicle width and height
this->storedPower = storedPowerup;
this->activePowerup = activePowerup;
this->isMe = isMe; //tells client which vehicle is its vehicle
//TODO: possibly include powerup classes / objects
}