3a1056a2c3
Added new variable in CapturePoint: IsHomeCapturePointForTeam CapturePointSystem updated so -5 = team 2 owns it, +5 = team 1 owns it. Its also looking for a winner each update Updated Test. TODO: better Tests
20 lines
273 B
C++
20 lines
273 B
C++
#ifndef EWin_h__
|
|
#define EWin_h__
|
|
|
|
#include "EventBroker.h"
|
|
#include "../Core/Entity.h"
|
|
#include "Engine/GLM.h"
|
|
|
|
namespace Events
|
|
{
|
|
|
|
//triggers when a team has captured all capturePoints
|
|
struct Win : Event
|
|
{
|
|
//can be 0 = none, 1,2
|
|
int TeamThatWon;
|
|
};
|
|
|
|
}
|
|
|
|
#endif |