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. Source
  4. Scramble.h
Mission NodeSDK 6.2C++scramble.h

Scramble.h

SDK Source File: Scramble.h

Source / SDK 6.2 / C++ / Core

Scramble.h

Scramble.h
CPP
1/* Copyright Statement:
2 *
3 * (C) 2021-2024 Cubios Inc. All rights reserved.
4 */
5
6#ifndef WASMLIBS_CPP_SCRAMBLE_H_
7#define WASMLIBS_CPP_SCRAMBLE_H_
8#pragma once
9
10#include <memory>
11#include "native.h"
12
13namespace Cubios
14{
15
16 class Scramble
17 {
18 public:
19 Scramble()
20 {
21 this->previosTwist.count = 0;
22 this->previosTwist.screen = SCREENS_MAX;
23 };
24 ~Scramble(){};
25
26 void StartScramble(uint8_t twistsCount);
27 void VirtualTwist(uint8_t screen, uint8_t direction);
28
29 virtual void on_BeforeTwist() = 0;
30 virtual void on_MappingChanged(uint8_t moduleTo, uint8_t screenTo, uint8_t moduleFrom, uint8_t screenFrom) = 0;
31 virtual void on_Twist(const Cubios::TOPOLOGY_twistInfo_t twist) = 0;
32
33 private:
34
35 Cubios::TOPOLOGY_twistInfo_t previosTwist;
36
37 TOPOLOGY_faceletInfo_t TopFaceletsStarting[SCREENS_MAX][MODULES_MAX / 2];
38 TOPOLOGY_faceletInfo_t TopFaceletsEndind[SCREENS_MAX][MODULES_MAX / 2];
39
40 void rememberCurrentTopology();
41 void rotate(uint8_t scr, uint8_t dir);
42 };
43}
44#endif /* WASMLIBS_CPP_SCRAMBLE_H_ */
45
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.
Context Rail

Related nodes

AppManager.cpp
Source / SDK 6.2 / C++ / Core
AppManager.h
Source / SDK 6.2 / C++ / Core
Gfx.h
Source / SDK 6.2 / C++ / Core
native access.h
Source / SDK 6.2 / C++ / Core
Previous Node
Scramble.cpp
Source / SDK 6.2 / C++ / Core
Next Node
Screen.cpp
Source / SDK 6.2 / C++ / Core