NB6_Hazards/GDE_3_2008/KV_PiGroup.h
Jonny007-MKD 17f4b32239 KV_PiGroup: vector of Locations
Das ist ein vector mit KV_PiEleLocs.
Dazu kommen ein paar Methoden, z.B. zur Überprüfung, ob ein Element an
diese Gruppe angrenzt.
2014-01-05 19:16:02 +01:00

25 lines
No EOL
387 B
C++

#pragma once
#include "stdafx.h"
#include <vector>
#include "KV_PiEleLoc.h"
using namespace std;
extern uint dimension;
class KV_PiGroup
{
private:
vector<KV_PiEleLoc*> elements;
public:
bool LiesNextTo(KV_PiEleLoc* &el);
void Add(KV_PiEleLoc* &el);
void MakeCoords();
KV_PiEleLoc* operator[](uint &index);
KV_PiEleLoc* at(uint &index);
uint size();
uint X1, X2, Y1, Y2;
};