
Das ist ein vector mit KV_PiEleLocs. Dazu kommen ein paar Methoden, z.B. zur Überprüfung, ob ein Element an diese Gruppe angrenzt.
25 lines
No EOL
387 B
C++
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;
|
|
}; |