VX++ Framework (VxCpp.dll)
Friendly Voxon development with classes
vxInterfaces.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "VxCpp.h"
13 
18 class IVoxiePtr {
19 
20 public:
21  virtual void setIVoxieBoxPtr(IVoxieBox * voxiePtr) { this->voxiePtr = voxiePtr; }
22  virtual IVoxieBox *getIVoxieBoxPtr() { return voxiePtr; }
23 
24 protected:
25  IVoxieBox *voxiePtr = 0;
26 
27 };
28 
30 class IActive {
31 
32 public:
33 
34  bool isActive() { return active; };
35  void setActive(bool option) {
36  active = option;
37  }
38  bool getActive() {
39  return active;
40  }
41 
42 
43 protected:
44  bool active = true;
45 
46 };
47 
49 class IDrawable: public IVoxiePtr {
50 
51 public:
52  virtual void draw() { ; }
53  bool isDrawable() {
54  return drawable;
55  };
56  void setDrawable(bool option) {
57  drawable = option;
58  };
59  bool getDrawable() {
60  return drawable;
61  }
62 protected:
63  bool drawable = true;
64 };
65 
67 class IBreathable: public IVoxiePtr {
68 
69 public:
70 
71  virtual void onBreath() { ; };
72  bool isBreathable() {
73  return breathable;
74  };
75  void setBreathable(bool option) {
76  breathable = option;
77  };
78  bool getBreathable() {
79  return breathable;
80  }
81 
82 protected:
83  bool breathable = true;
84 
85 };
86 
88 class IUI2D {
89 
90 public:
91  void moveTo(int newPosX, int newPosY) { posX = newPosX; posY = newPosY; }
92  int getPosX() { return posX; }
93  int getPosY() { return posY; }
94  int getGroupID() { return groupID; }
95  void setGroupID(int newGroupID) { groupID = newGroupID; }
96 
97 protected:
98  int posX = 0, posY = 0, groupID = -1;
99 
100 };
101 
102 
103 
IActive interface allows a class to be 'active'. Set to true of false.
Definition: vxInterfaces.h:30
IBreathable classes which inherit this interface can be added to the 'breathable' vector and updated ...
Definition: vxInterfaces.h:67
IDrawable classes which inherit are 'drawable' interface can be added to the 'drawable' vector and dr...
Definition: vxInterfaces.h:49
Interface used to create 2D UIs.
Definition: vxInterfaces.h:88
Interface for VoxieBox class.
Definition: vxCPP.h:171
IVoxiePtr classes which inherit this interface require access to IVoxieBox pointer.
Definition: vxInterfaces.h:18
Header file for VxCpp.dll outlines the VoxieBox class and the IVoxieBox interface.