#include <Slot.h>
Collaboration diagram for Slot:
Public Member Functions | |
Slot (const Component *comp, long amount, long Pos, const Slot &hull) | |
Slot (const TiXmlNode *node, long Pos) | |
Slot (const Slot &other) | |
const Component * | GetComp () const |
bool | IsAllowed (ComponentType type) const |
int | GetCount () const |
long | GetPosition () const |
void | SetComp (const Component *comp) |
Private Attributes | |
ComponentType | Allowed |
const Component * | component |
long | count |
long | mPosition |
long | mSlotLeft |
long | mSlotTop |
Friends | |
bool | operator== (const Slot &s1, const Slot &s2) |
bool | operator!= (const Slot &s1, const Slot &s2) |
A slot contains a specific component. Sometimes you can fit more than one component into the slot. However, the components must be identical.
Definition at line 42 of file Slot.h.