openspades/Sources/Client/CTFGameMode.h

37 lines
658 B
C
Raw Normal View History

2013-08-18 16:18:06 +09:00
//
// CTFGameMode.h
// OpenSpades
//
// Created by yvt on 7/16/13.
// Copyright (c) 2013 yvt.jp. All rights reserved.
//
#pragma once
#include "IGameMode.h"
#include "../Core/Math.h"
namespace spades {
namespace client {
class CTFGameMode: public IGameMode {
public:
struct Team {
unsigned int score;
bool hasIntel;
unsigned int carrier;
Vector3 flagPos;
Vector3 basePos;
};
int captureLimit;
private:
Team teams[2];
public:
CTFGameMode();
virtual ~CTFGameMode();
Team& GetTeam(int t);
int GetCaptureLimit() { return captureLimit; }
void SetCaptureLimit(int v){ captureLimit = v; }
};
}
}