Unofficial community resource. Not affiliated with, maintained by, or endorsed by WOWCube / Cubios Inc. Cubios Inc. does not guarantee the accuracy or completeness of this content. Official WOWCube Development Kit

WOWCube Docs logo
WOWCube Docs
Mission Control
Section Shortcuts
APIExamplesSourceWOWConnectChangelogDeveloper Toolkit
Filters
SDK and language defaults persist in cookies.
SDK version
Navigation Tree
Collapsed by default, focused on the active path.

Unofficial community resource. Not affiliated with, maintained by, or endorsed by WOWCube / Cubios Inc. Cubios Inc. does not guarantee the accuracy or completeness of this content. For official documentation and the SDK, see the WOWCube Development Kit.

Made byMcKay Seamons
GitHub
  1. Home
  2. Docs
  3. API
  4. Cubios::Scramble
Mission NodeSDK 6.1C++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.1 / C++ / gfx engine
VersionSDK 6.3SDK 6.2SDK 6.1
Report issue

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.

Trust & provenance

Document status

Source
Scramble · installed SDK headers
Classification
API reference
Verification
Community-maintained · verify against installed SDK

Catalog updated Oct 20, 2018

Structured index

Symbols on this page

Names and signatures are extracted from this SDK-derived page. Signature hashes detect accidental changes.

Cubios::ScrambleClass
ConstructorsMember
ScrambleMember
Public MethodsMember
StartScrambleMember
VirtualTwistMember
Virtual MethodsMember
on_TwistMember
on_BeforeTwistMember
on_MappingChangedMember

Used in SDK snippets

VirtualTwist→ScrambleApp.cppVirtualTwist→ScrambleApp.cppVirtualTwist→ScrambleApp.cppScramble→MyScramble.hScramble→wowcubeapp-build.json
Jump Grid

On This Page

ConstructorsScramblePublic MethodsStartScrambleVirtualTwistVirtual Methodson Twiston BeforeTwiston MappingChanged
Back to top ↑
Context Rail

Related nodes

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