WOWCube Docs logo
WOWCube Docs
Mission Control
Section Shortcuts
APIExamplesSourceWOWConnectChangelog
Filters
SDK and language defaults persist in cookies.
SDK version
Navigation Tree
Collapsed by default, focused on the active path.
Made byMcKay Seamons
GitHub
  1. Home
  2. Docs
  3. Examples
  4. Messaging.h
Mission NodeSDK 6.2C++networkProject Included

Messaging.h

Example: Messaging.h

Examples / SDK 6.2 / C++ / network / Messaging / project / src
Messaging.h
CPP
1// This header file is generated by WOWCube SDK project wizard
2#pragma once
3#include "Gfx.h"
4
5enum Commands
6{
7 cmd_paintGreen = 1,
8 cmd_paintBlue = 2,
9 cmd_paintRed = 3
10};
11
12class Messaging: public Cubios::Application
13{
14public:
15 Messaging();
16 virtual ~Messaging();
17
18 virtual void on_PhysicsTick(const std::array<Cubios::Screen, 3>& screens) override;
19 virtual void on_Twist(const Cubios::TOPOLOGY_twistInfo_t& twist) override;
20 virtual void on_Message(uint32_t type, uint8_t* pkt, u32_t size) override;
21 virtual void on_ExternalMessage(uint8_t* pkt, u32_t size) override;
22 virtual void on_Pat(uint32_t count) override;
23 virtual void on_Render(std::array<Cubios::Screen, 3>& screens) override;
24 virtual void on_Tick(uint32_t currentTime, uint32_t deltaTime) override;
25 virtual void on_Timer(uint8_t timerID) override;
26
27 void InitializeResources();
28
29private:
30
31 void sendDataToNeighbours();
32
33private:
34 bool received;
35 int counter;
36 uint32_t currentColor;
37};
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.
Context Rail

Project files

Messaging.cpp
project/src/Messaging.cpp
Messaging.h
project/src/Messaging.h
wowcubeapp-build.json
project/wowcubeapp-build.json
Context Rail

Related nodes

Messaging.cpp
Examples / SDK 6.2 / C++ / network / Messaging / project / src
Messaging
Examples / SDK 6.2 / C++ / network
info.json
Examples / SDK 6.2 / C++ / network / Messaging
wowcubeapp-build.json
Examples / SDK 6.2 / C++ / network / Messaging / project
Previous Node
Messaging.cpp
Examples / SDK 6.2 / C++ / network / Messaging / project / src
Next Node
wowcubeapp-build.json
Examples / SDK 6.2 / C++ / network / Messaging / project