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. API
  4. Cubios::Scramble
Mission NodeSDK 6.3C++gfx engine

Cubios::Scramble

Cubios::Scramble Constructors Scramble Summary Creates an object that is used to describe the topology of the virtual cube and manipulate it. Arguments Synop...

API / SDK 6.3 / C++ / gfx engine

Cubios::Scramble

Constructors

Scramble

Summary

Creates an object that is used to describe the topology of the virtual cube and manipulate it.

Arguments

Synopsis

Cubios::Scramble
CPP
1Scramble()
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Public Methods

StartScramble

Summary

This function is used to rotate a virtual cube a specified number of times

Arguments

  • twistsCount - number of virtual rotations

Synopsis

Cubios::Scramble
CPP
1void StartScramble(uint8_t twistsCount)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

VirtualTwist

Summary

The function is used to perform a single twist in a given direction relative to a specific screen

Arguments

  • scr - index of a screen relative to which rotation occurs
  • dir - twist direction

Synopsis

Cubios::Scramble
CPP
1void VirtualTwist(uint8_t screen, uint8_t direction)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Virtual Methods

on_Twist

Summary

A callback function called after performing a virtual twist. This function works similar to the function Applicaiton::on_Twist(const Cubios::TOPOLOGY_twistInfo_t &twist)

Arguments

  • Cubios::TOPOLOGY_twistInfo_t twist - twist information

Synopsis

Cubios::Scramble
CPP
1virtual void on_Twist(const Cubios::TOPOLOGY_twistInfo_t twist) = 0;
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

on_BeforeTwist

Summary

A callback function called before executing a virtual twist. In the body of this function, for example, saving the state of the topology of the virtual cube prior to the rotation can be performed.

Synopsis

Cubios::Scramble
CPP
1virtual void on_BeforeTwist() = 0;
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

on_MappingChanged

Summary

A callback function called when mapping values change after performing a virtual twist. The function allows you to understand the movement of screens and modules in connection with the rotation of the virtual cube.

Arguments

  • moduleTo, screenTo - Module and screen indices to which you need to assign the values of the moduleForm and screenFrom indexes of the mapping saved before the rotation is made
  • moduleFrom, screenFrom - Module and screen indices of the original mapping saved before the rotation was made

Description

In fact, this callback is called every time something changes in the mapping after a virtual twist. Despite the apparent complexity, in essence everything is quite simple: all you need to do when calling this callback is to copy the mapping values from moduleFrom/screenFrom to moduleTo/screenTo

Synopsis

Cubios::Scramble
CPP
1virtual void on_MappingChanged(uint8_t moduleTo, uint8_t screenTo, uint8_t moduleFrom, uint8_t screenFrom) = 0;
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Jump Grid

On This Page

ConstructorsScramblePublic MethodsStartScrambleVirtualTwistVirtual Methodson Twiston BeforeTwiston MappingChanged
Context Rail

Related nodes

Cubios::Math
API / SDK 6.3 / C++ / gfx engine
Cubios::Math::Vec2
API / SDK 6.3 / C++ / gfx engine
Cubios::Math::Transform
API / SDK 6.3 / C++ / gfx engine
Cubios::Math::Color
API / SDK 6.3 / C++ / gfx engine
Previous Node
Cubios::Gfx::QRCode
API / SDK 6.3 / C++ / gfx engine
Next Node
PawnLibs/wowcore/SELF\ ID
API / SDK 6.3 / Pawn / API Reference