repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
edge-fortress/OSS-13 | OSS13 Client/Sources/Graphics/UI/Widget/Label.hpp | #pragma once
#include "CustomWidget.h"
class Label : public CustomWidget {
public:
Label();
Label(const sf::String &);
virtual void Update(sf::Time timeElapsed) override;
void SetString(const sf::String &string);
protected:
virtual void draw() const override;
private:
sf::Text text;
}; |
edge-fortress/OSS-13 | OSS13 Client/Sources/Graphics/UI/Widget/GameProcess/TileContextMenu.cpp | <filename>OSS13 Client/Sources/Graphics/UI/Widget/GameProcess/TileContextMenu.cpp<gh_stars>10-100
#include "TileContextMenu.h"
#include <imgui.h>
#include <Client.hpp>
#include <Network/Connection.h>
#include <Shared/Network/Protocol/ClientToServer/Commands.h>
void TileContextMenu::Update(sf::Time /*timeElapsed*/) ... |
edge-fortress/OSS-13 | SharedLibrary/Sources/Shared/Geometry/Vec3.hpp | #pragma once
#include <SFML/System/Vector3.hpp>
#include <iostream>
namespace uf {
template<
typename T,
typename = typename std::enable_if_t<std::is_arithmetic_v<T>>
>
struct vec3;
template<typename T>
struct vec3<T> {
T x;
T y;
T z;
vec3();
vec3(T x, T y, T z);
vec3(vec2<T> xy, T z);
explicit vec3(T xyz... |
edge-fortress/OSS-13 | OSS13 Client/Sources/Graphics/UI/Widget/Container.cpp | #include "Container.hpp"
#include <typeinfo>
#include <algorithm>
#include "Shared/Geometry/Vec2.hpp"
#include "Client.hpp"
#include "Entry.hpp"
Container::Container(const uf::vec2i &size) :
CustomWidget(size),
curInputWidgetIterator(items.end()), underCursorWidget(nullptr)
{ }
void Container::Update(sf::Time ... |
edge-fortress/OSS-13 | SharedLibrary/Sources/Shared/Geometry/Vec2.hpp | #pragma once
#include <iostream>
#include <SFML/System/Vector2.hpp>
#include "Angle.h"
namespace uf {
template<
typename T,
typename = typename std::enable_if_t<std::is_arithmetic_v<T>>
>
struct vec2;
template<typename T>
struct vec2<T> {
T x;
T y;
vec2();
vec2(T x, T y);
explicit vec2(T xy);
static au... |
edge-fortress/OSS-13 | OSS13 Client/Sources/Graphics/UI/UIModule/GameProcessUI.cpp | #include "GameProcessUI.hpp"
#include <memory>
#include <regex>
#include <imgui.h>
#include <imgui_stdlib.h>
#include <Client.hpp>
#include <Graphics/Window.hpp>
#include <Graphics/TileGrid/TileGrid.hpp>
#include <Graphics/TileGrid/Object.hpp>
#include <Graphics/UI/UI.hpp>
#include <Graphics/UI/Widget/GameProcess/Sp... |
edge-fortress/OSS-13 | OSS13 Server/Sources/World/World.cpp | <filename>OSS13 Server/Sources/World/World.cpp
#include "World.hpp"
#include <IGame.h>
#include <IScriptEngine.h>
#include "Map.hpp"
#include "Tile.hpp"
#include "Objects.hpp"
#include "Objects/Control.hpp"
#include "Player/Player.h"
#include "Subsystems/Atmos/Atmos.h"
#include <Shared/ErrorHandling.h>
using namesp... |
edge-fortress/OSS-13 | OSS13 Server/Sources/World/Subsystems/Atmos/AtmosTile.cpp | #include "AtmosTile.h"
#include <World/Objects/Object.hpp>
#include <World/Map.hpp>
using namespace subsystem::atmos;
void AtmosTile::RecountAirtightness() {
needToRecoundAirtightness = true;
}
bool AtmosTile::SynchronizeAtmos() {
recountAirtightness();
if (airtightness != airtightnessChanged) {
airtightness =... |
edge-fortress/OSS-13 | OSS13 Server/Sources/World/Camera/Camera.hpp | #pragma once
#include <unordered_set>
#include <Shared/Types.hpp>
#include <Shared/Grid.hpp>
#include "ICameraOverlay.h"
class Tile;
class Object;
class Player;
struct Diff;
namespace sf {
class Packet;
}
struct ContextMenuNodeCache {
Object *obj;
std::vector<std::string> verbs;
};
class Camera {
public:
exp... |
edge-fortress/OSS-13 | SharedLibrary/Sources/Shared/Grid.inl | <filename>SharedLibrary/Sources/Shared/Grid.inl
namespace uf {
// Grid::const_iterator
template<typename T>
Grid<T>::const_iterator::const_iterator(const Grid<T>& grid, vec3u dataPos) :
grid(grid),
dataPos(dataPos)
{ }
template<typename T>
typename Grid<T>::const_iterator& Grid<T>::const_iterator::operator++() ... |
edge-fortress/OSS-13 | OSS13 Client/Sources/Graphics/TileGrid/ControlUI.cpp | #include "ControlUI.h"
#include <Client.hpp>
#include <ResourceManager.hpp>
#include <Network/Connection.h>
#include <Shared/Global.hpp>
#include <Shared/Network/Protocol/ClientToServer/Commands.h>
ControlUIElement::ControlUIElement(const std::string &key) :
key(key)
{ }
void ControlUIElement::Update(sf::Time /*ti... |
edge-fortress/OSS-13 | OSS13 Server/Sources/Player/PlayerCommandsProcessor.cpp | #include "PlayerCommandsProcessor.h"
#include "Player.h"
#include <Game.h>
#include <IScriptEngine.h>
#include <World/Objects/Object.hpp>
#include <World/Objects/Control.hpp>
#include <Shared/ErrorHandling.h>
#include <Shared/Network/Protocol/ServerToClient/Commands.h>
using namespace std::string_literals;
PlayerC... |
edge-fortress/OSS-13 | OSS13 Client/Sources/Graphics/Texture.cpp | #include "Texture.hpp"
#include "Client.hpp"
#include "Sprite.hpp"
Texture::Texture() { }
bool Texture::IsFramePixelTransparent(uf::vec2u pixel, uint frame) const {
uf::vec2u texturePixel = pixel;
texturePixel.x += frame % numOfTiles.x * sizeOfTile;
texturePixel.y += frame / numOfTiles.x * sizeOfTile;
... |
edge-fortress/OSS-13 | OSS13 Client/Sources/Graphics/TextureHolder.cpp | #include "TextureHolder.h"
Texture *TextureHolder::LoadTexture(const std::string &path, uint32_t tileSize) {
textures.push_back(std::make_unique<Texture>());
Texture *texture = textures.back().get();
if (!texture->load(path, tileSize)) {
textures.pop_back();
throw std::exception(); // "TextureHolder::CreateTex... |
edge-fortress/OSS-13 | OSS13 Client/Sources/Graphics/UI/Widget/Entry.hpp | <gh_stars>10-100
#pragma once
#include "CustomWidget.h"
#include <functional>
#include <string>
#include <vector>
class Entry : public CustomWidget {
public:
explicit Entry(const uf::vec2i &size = {});
void Update(sf::Time timeElapsed) override final;
virtual bool OnMouseButtonPressed(sf::Mouse::Button button, ... |
edge-fortress/OSS-13 | OSS13 Server/Sources/DelayedActivitiesManager.cpp | #include "DelayedActivitiesManager.h"
void DelayedActivitiesManager::AddDelayedActivity(std::chrono::microseconds delay, std::function<void()> action) {
activities.push_back(Activity{delay, action});
}
void DelayedActivitiesManager::Update(std::chrono::microseconds timeElapsed) {
for (auto activity = activities.beg... |
edge-fortress/OSS-13 | OSS13 Server/Sources/World/Objects/Control.hpp | #pragma once
#include <SFML/System.hpp>
#include <Shared/Types.hpp>
#include "Component.hpp"
#include "ControlUI.h"
#include "../Tile.hpp"
class Player;
class Control : public Component {
public:
friend Player;
explicit Control();
void Update(std::chrono::microseconds timeElapsed) override;
void MoveCommand... |
edge-fortress/OSS-13 | OSS13 Client/Sources/Graphics/UI/Widget/Button.cpp | <reponame>edge-fortress/OSS-13
#include "Button.hpp"
#include "Shared/Geometry/Vec2.hpp"
#include "Client.hpp"
#include "Graphics/Window.hpp"
Button::Button(const uf::vec2i &size)
: CustomWidget(size)
{
underCursor = false;
}
Button::Button(const sf::String &string,
const uf::vec2i &size,
... |
zktc5418/Sample_JSB | frameworks/runtime-src/Classes/autoanysdkbindings.cpp | <filename>frameworks/runtime-src/Classes/autoanysdkbindings.cpp
#include "autoanysdkbindings.hpp"
#include "cocos2d_specifics.hpp"
#include "AgentManager.h"
#include "PluginProtocol.h"
#include "ProtocolPush.h"
#include "PluginFactory.h"
#include "ProtocolAds.h"
#include "PluginManager.h"
#include "ProtocolAnalytics.h"... |
zktc5418/Sample_JSB | frameworks/runtime-src/Classes/autoanysdkbindings.hpp | #ifndef __autoanysdkbindings_h__
#define __autoanysdkbindings_h__
#include "jsapi.h"
#include "jsfriendapi.h"
extern JSClass *jsb_anysdk_framework_PluginProtocol_class;
extern JSObject *jsb_anysdk_framework_PluginProtocol_prototype;
bool js_autoanysdkbindings_PluginProtocol_constructor(JSContext *cx, uint32_t argc... |
zktc5418/Sample_JSB | frameworks/runtime-src/Classes/manualanysdkbindings.cpp | #include "manualanysdkbindings.hpp"
#include "cocos2d_specifics.hpp"
#include "AgentManager.h"
#include "PluginProtocol.h"
#include "ProtocolPush.h"
#include "PluginFactory.h"
#include "ProtocolAds.h"
#include "PluginManager.h"
#include "ProtocolAnalytics.h"
#include "ProtocolSocial.h"
#include "ProtocolIAP.h"
#include... |
zktc5418/Sample_JSB | frameworks/runtime-src/Classes/manualanysdkbindings.hpp | #ifndef __manualanysdkbindings_h__
#define __manualanysdkbindings_h__
#include "jsapi.h"
#include "jsfriendapi.h"
void register_all_anysdk_manual(JSContext* cx, JSObject* global);
#endif
|
N-I-N-0/NSMBWii-Mod | Kamek/src/liquidsTex.cpp | u8 liquidSubTypes[80];
u8 nextSplashSubType;
extern "C" u8 checkWater(float, float, u8, float*);
u8 getLiquidSubType(float x, float y, u8 layer, float* unk) { //getLiquidSubType__FP7Point3d
for (int i = 0; i < 80; i++) {
WaterData* data = &dWaterManager_c::instance->data[i];
if(data->isInUse) {
if ((data->x <... |
N-I-N-0/NSMBWii-Mod | Kamek/src/pullStar.cpp | #include <common.h>
#include <game.h>
#include <profile.h>
#include <stage.h>
Vec pullAngle[4] = { 0,0,0,0 };
Vec lastPos[4] = { 0,0,0,0 };
bool dragged[4] = { false,false,false,false };
const char* PullStarFileList[] = { "launchStar", 0 };
class daEnPullStar_c : public dEn_c {
public:
int onCreate();
int onExecu... |
N-I-N-0/NSMBWii-Mod | Kamek/src/flipblock.cpp | #include <common.h>
#include <game.h>
#include <profile.h>
const char *FlipBlockFileList[] = {"block_rotate", 0};
class daEnFlipBlock_c : public daEnBlockMain_c {
public:
Physics::Info physicsInfo;
int onCreate();
int onDelete();
int onExecute();
int onDraw();
void calledWhenUpMoveExecutes();
void calledWhen... |
N-I-N-0/NSMBWii-Mod | Kamek/src/eggblock.cpp | <reponame>N-I-N-0/NSMBWii-Mod
#include <common.h>
#include <game.h>
#include <g3dhax.h>
#include <sfx.h>
extern "C" void PlaySoundWithFunctionB4(void *spc, nw4r::snd::SoundHandle *handle, int id, int unk);
// Egg Block
class daEggBlock_c : public daEnBlockMain_c {
public:
TileRenderer tile;
Physics::Info physicsIn... |
N-I-N-0/NSMBWii-Mod | Kamek/src/warpBox.cpp | #include <common.h>
#include <game.h>
#include <profile.h>
const char* WarpBoxFileList[] = { "warpBox", 0 };
class daEnWarpBox_c : public dEn_c {
public:
int onCreate();
int onExecute();
int onDelete();
int onDraw();
mHeapAllocator_c allocator;
nw4r::g3d::ResFile resFile;
m3d::mdl_c bodyModel;
daEnWarpBox_... |
N-I-N-0/NSMBWii-Mod | Kamek/src/blueShell.cpp | #include <game.h>
#include "daEnShell_c.h"
#include <common.h>
#include <g3dhax.h>
#include <sfx.h>
#include <profile.h>
class daNakedNokonoko_c : public dEn_c {
public:
int onCreate();
int onDelete();
int onExecute();
int onDraw();
mHeapAllocator_c allocator;
nw4r::g3d::ResFile resFile;
nw4r::g3d::ResFile anm... |
N-I-N-0/NSMBWii-Mod | Kamek/src/playerCurrentMultiplierMgr.cpp | <filename>Kamek/src/playerCurrentMultiplierMgr.cpp
#include <common.h>
#include <game.h>
#include <profile.h>
class dPlCrMgr_c : public dStageActor_c {
public:
int onCreate();
int onExecute();
static dActor_c *build();
};
const char *PlCrMgrFileList[] = {0};
const SpriteData PlCrMgrSpriteData = { ProfileId::PlCrM... |
N-I-N-0/NSMBWii-Mod | Kamek/src/soundtest.cpp | #include "soundtest.h"
dScSoundTest_c *dScSoundTest_c::instance = 0;
dScSoundTest_c *dScSoundTest_c::build() {
// return new dScSoundTest_c;
void *buffer = AllocFromGameHeap1(sizeof(dScSoundTest_c));
dScSoundTest_c *c = new(buffer) dScSoundTest_c;
instance = c;
return c;
}
dScSoundTest_c::dScSoundTest_c() {
... |
N-I-N-0/NSMBWii-Mod | Kamek/src/effectvideo_old.cpp | <reponame>N-I-N-0/NSMBWii-Mod
#include <common.h>
#include <game.h>
#include <g3dhax.h>
#include <sfx.h>
extern "C" bool SpawnEffect(const char*, int, Vec*, S16Vec*, Vec*);
class EffectVideo : public dEn_c {
int onCreate();
int onExecute();
int onDelete();
u64 eventFlag;
s32 timer;
u32 delay;
u32 effect;
... |
N-I-N-0/NSMBWii-Mod | Kamek/src/exclamationBlock.cpp | <reponame>N-I-N-0/NSMBWii-Mod<gh_stars>0
#include <common.h>
#include <game.h>
#include <g3dhax.h>
#include <sfx.h>
extern "C" void PlaySoundWithFunctionB4(void *spc, nw4r::snd::SoundHandle *handle, int id, int unk);
/*
- direction
- length
- id
- sub id
- next block
*/
// Exclamation Block
class daExclamation... |
N-I-N-0/NSMBWii-Mod | Kamek/src/rail.cpp | <reponame>N-I-N-0/NSMBWii-Mod<filename>Kamek/src/rail.cpp
#include <common.h>
#include <game.h>
#include <profile.h>
#include "baddy.h"
const char* RailFileList[] = { "rail", 0 };
class daEnRail_c : public dEn_c {
public:
int onCreate();
int onExecute();
int onDelete();
int onDraw();
/*mHeapAllocator_c allocat... |
N-I-N-0/NSMBWii-Mod | Kamek/src/pullStarManager.cpp | <filename>Kamek/src/pullStarManager.cpp
#include <common.h>
#include <game.h>
#include <profile.h>
#include <stage.h>
const char* PullStarManagerFileList[] = { "launchStar", 0 };
class daEnPullStarManager_c : public dEn_c {
public:
int onCreate();
int onExecute();
int onDelete();
daEnPullStar_c* closestPull[4][... |
N-I-N-0/NSMBWii-Mod | Kamek/src/fishinBoo.cpp | #include <common.h>
#include <game.h>
#include <g3dhax.h>
#include "boss.h"
const char* FishingBooFileList [] = { "FishingBoo", NULL };
class daFishinBoo_c : public dEn_c {
public:
int onCreate();
int onDelete();
int onExecute();
int onDraw();
mHeapAllocator_c allocator;
nw4r::g3d::ResFile resFile;
m3d::mdl_... |
N-I-N-0/NSMBWii-Mod | Kamek/src/goombaTower.cpp | <reponame>N-I-N-0/NSMBWii-Mod
extern "C" bool daEnKuriboBase_c__isFrozen(int);
extern dStateBase_c StateID_Turn__Goomba;
extern dStateBase_c StateID_Ice__Goomba;
extern dStateBase_c StateID_DieFall__Goomba;
extern dStateBase_c StateID_DieOther__Goomba;
extern dStateBase_c StateID_Walk__Goomba;
#include <common.h>
#inc... |
N-I-N-0/NSMBWii-Mod | Kamek/src/0.cpp | #include <game.h>
//#include "0.h"
u8 LastLevelPlayed[2] = {0xFF,0xFF}; //Powerup Jam fix
//bool enableDebugMode = true; //Powerup Jam fix
void Test() {
//OSReport("DoSceneChange finished\n");
//SaveBlock *save = GetSaveFile()->GetBlock(-1);
//save->addToLevelNum = 0;
//OSReport("addToLevelNum: %p\n", save->ad... |
N-I-N-0/NSMBWii-Mod | Kamek/src/blocksource.cpp | <gh_stars>1-10
#include <common.h>
#include <game.h>
#include <actors.h>
#include "sfx.h"
class daBlockSource_c : public daEnBlockMain_c {
public:
TileRenderer tileMiddle;
Physics::Info physicsInfo;
int onCreate();
int onDelete();
int onExecute();
void calledWhenUpMoveExecutes();
void calledWhenDownMoveExecut... |
N-I-N-0/NSMBWii-Mod | Kamek/src/numpad.cpp | <filename>Kamek/src/numpad.cpp
#include <common.h>
#include <game.h>
#include "sfx.h"
#include "numpad.h"
CREATE_STATE(dNumpadSpawner_c, Hidden);
CREATE_STATE(dNumpadSpawner_c, ShowWait);
CREATE_STATE(dNumpadSpawner_c, ButtonActivateWait);
CREATE_STATE(dNumpadSpawner_c, Wait);
CREATE_STATE(dNumpadSpawner_c, HideWait... |
N-I-N-0/NSMBWii-Mod | Kamek/src/kyasarinegg.cpp | <reponame>N-I-N-0/NSMBWii-Mod
#include <game.h>
const char* KyasarinEggANL [] = { "kyasarin", NULL };
//Class in kyasarin.cpp
void daKyasarinEgg_c::updateModelMatrices() {
matrix.translation(pos.x, pos.y, pos.z);
matrix.applyRotationYXZ(&rot.x, &rot.y, &rot.z);
bodyModel.setDrawMatrix(matrix);
bodyModel.setScal... |
N-I-N-0/NSMBWii-Mod | Kamek/src/poisonball.cpp | <gh_stars>1-10
#include <common.h>
#include <game.h>
#include <g3dhax.h>
#include <sfx.h>
#include <stage.h>
const char* VParcNameList [] = {
"pakkun",
NULL
};
class daPoisonBall : public dEn_c {
int onCreate();
int onDelete();
int onExecute();
int onDraw();
mHeapAllocator_c allocator;
nw4r::g3d::ResFile r... |
N-I-N-0/NSMBWii-Mod | Kamek/src/goalPole.cpp | <filename>Kamek/src/goalPole.cpp<gh_stars>1-10
#include <common.h>
#include <game.h>
#include "daEnGlPole_c.h"
void daEnGlpole_c_initInvisibleWallIfSet(ActivePhysics* wallPhysics, daEnGlpole_c* this_, ActivePhysics::Info * argument) {
if (((this_->settings >> 4) & 1) == 0) {
wallPhysics->initWithStruct(thi... |
N-I-N-0/NSMBWii-Mod | Kamek/src/levelnames.cpp | <reponame>N-I-N-0/NSMBWii-Mod<filename>Kamek/src/levelnames.cpp
#include <common.h>
#include <actors.h>
#include <stage.h>
#include "levelinfo_old.h"
#include "fileload.h"
#include "layoutlib.h"
//#define DEBUG_NAMES
#ifndef DEBUG_NAMES
#endif
extern char CurrentLevel;
extern char CurrentWorld;
int DoNames(int stat... |
N-I-N-0/NSMBWii-Mod | Kamek/src/poisoncloud.cpp | <gh_stars>1-10
#include <common.h>
#include <game.h>
#include <g3dhax.h>
#include <sfx.h>
#include <timekeeper.h>
bool isPlayerPoisoned[4];
bool playerCollisionFrame;
int howmuchpassed;
const char* BLarcNameList [] = {
"clock",
NULL
};
extern "C" bool SpawnEffect(const char*, int, Vec*, S16Vec*, Vec*);
class daP... |
N-I-N-0/NSMBWii-Mod | Kamek/src/worldmapManager.cpp | <gh_stars>0
#include "courseSelectManager.h"
int getLevelInfoWorldNumber(int world, int subWorld) {
/* for WXa this returns X (00-07)
for WXb this returns X + 8 (08-15)
for WXc this returns X + 16 (16-23)
don't use W9! */
return 8 * subWorld + world;
}
extern "C" u8 CurrentWorldNumForWorldMap;
e... |
N-I-N-0/NSMBWii-Mod | Kamek/src/claw.cpp | <reponame>N-I-N-0/NSMBWii-Mod
#include <profile.h>
#include <game.h>
#include <sfx.h>
const char* ClawANL [] = { "test_lift", NULL };
class daClaw : public dEn_c {
public:
int onCreate();
int onExecute();
int onDelete();
int onDraw();
void updateModelMatrices();
void bindAnimChr_and_setUpdateRate(const char* ... |
N-I-N-0/NSMBWii-Mod | Kamek/src/yoshiStomp.cpp | <filename>Kamek/src/yoshiStomp.cpp
#include <common.h>
#include <game.h>
#include <g3dhax.h>
#include <sfx.h>
#include "yoshiquick.h"
int blueTime = 720; //Time on which blue yoshi keeps a shell in his mouth if he ate one
int yellowTime = 960; //Time on which yellow yoshi keeps a shell in his mouth if he ate one
... |
N-I-N-0/NSMBWii-Mod | Kamek/src/parabones.cpp | #include <common.h>
#include <game.h>
#include <profile.h>
#include "path.h"
const char* paraBonesFileList[] = { "karon", "wing", 0 };
class daEnParaBones_c : public dEnPath_c {
public:
int onCreate();
int onExecute();
int onDelete();
int onDraw();
mHeapAllocator_c allocator;
nw4r::g3d::ResFile resFile;
nw4r... |
N-I-N-0/NSMBWii-Mod | Kamek/src/codeDebug.cpp | #include <game.h>
/* Code Debugging Functions */
/* CDPrintCurrentAddress()
This function prints the address the code execution is at when calling this functions (link register).
*/
extern "C" void CDPrintCurrentAddress();
int actuallyPrintLine(int addr){
OSReport("Code execution at: 0x%x\n", addr);
return addr;
... |
N-I-N-0/NSMBWii-Mod | Kamek/src/cutsceneMgr.cpp | #include <common.h>
#include <game.h>
#include <profile.h>
class cutsceneMgr : public dStageActor_c {
public:
nw4r::lyt::Picture *_1;
nw4r::lyt::Picture *_2;
nw4r::lyt::Picture *_3;
nw4r::lyt::Picture *_4;
nw4r::lyt::Picture *_5;
nw4r::lyt::Picture *_6;
nw4r::lyt::Picture *_7;
nw4r::lyt::Picture *_31;
nw4r::... |
N-I-N-0/NSMBWii-Mod | Kamek/src/starChip.cpp | #include <common.h>
#include <game.h>
#include <profile.h>
#include <actors.h>
const char* StarChipFileList[] = { "starChip", 0 };
bool alreadyCheckedCollected[32][5];
void resetAfterMid()
{
OSReport("resetAfterMid\n");
for (int i = 0; i < 32; i++)
{
for (int j = 0; j < 5; j++)
{
launchStarChipCollectedA... |
N-I-N-0/NSMBWii-Mod | Kamek/src/trapblock.cpp | #include <common.h>
#include <game.h>
#include <g3dhax.h>
#include <sfx.h>
extern "C" void PlaySoundWithFunctionB4(void *spc, nw4r::snd::SoundHandle *handle, int id, int unk);
//Wrote by RedStoneMatt because CLF78 isn't able to do it :p
/*****************************************************************************/
... |
N-I-N-0/NSMBWii-Mod | Kamek/src/backupCode/launchStar_backup.cpp | <reponame>N-I-N-0/NSMBWii-Mod
#include <common.h>
#include <game.h>
#include <profile.h>
#include <stage.h>
#include "baddy.h"
const char* LaunchStarFileList[] = { "launchStar", 0 };
extern char CurrentLevel, CurrentWorld;
extern "C" void ExitStageReal(int scene, int sceneParams, int powerupStoreType, int wipe);
ext... |
N-I-N-0/NSMBWii-Mod | Kamek/src/poihana.cpp | <filename>Kamek/src/poihana.cpp
#include <common.h>
#include <game.h>
#include <g3dhax.h>
#include <sfx.h>
const char* PoihanaFileList [] = { "cataquack", NULL };
void shyCollisionCallback(ActivePhysics *apThis, ActivePhysics *apOther);
void ChuckleAndKnuckles(ActivePhysics *apThis, ActivePhysics *apOther);
class d... |
N-I-N-0/NSMBWii-Mod | Kamek/src/launchStar_.cpp | #include <common.h>
#include <game.h>
#include <profile.h>
#include "boomeranghax.h"
const char* LaunchStarFileList[] = { "launchStar", 0 };
class daEnLaunchStar_c : public dEn_c {
public:
int onCreate();
int onExecute();
int onDelete();
int onDraw();
mHeapAllocator_c allocator;
nw4r::g3d::ResFile resFile;
... |
N-I-N-0/NSMBWii-Mod | Kamek/src/superLaunchStar.cpp | #include <common.h>
#include <game.h>
#include <profile.h>
#include <stage.h>
const char* SuperLaunchStarFileList[] = { "launchStar", 0 };
extern char CurrentLevel, CurrentWorld;
extern "C" void ExitStageReal(int scene, int sceneParams, int powerupStoreType, int wipe);
extern "C" u8 CurrentWorldNumForWorldMap;
exter... |
N-I-N-0/NSMBWii-Mod | Kamek/src/cloudpropeller.cpp | #include <game.h>
#include <sfx.h>
const char* CPArcNameList [] = { "cloudpropeller", NULL };
class daCloudPropeller : public dEn_c {
public:
int onCreate();
int onExecute();
int onDelete();
int onDraw();
void LoadModel(int id);
void bindAnimChr_and_setUpdateRate(const char* name, int unk, float unk2, float ... |
N-I-N-0/NSMBWii-Mod | Kamek/src/gakenoko.cpp | <reponame>N-I-N-0/NSMBWii-Mod
#include <game.h>
struct daEnGakeNoko_c : public dEn_c {
mHeapAllocator_c allocator;
nw4r::g3d::ResFile resFile;
m3d::mdl_c model;
m3d::anmChr_c anmChr;
nw4r::g3d::ResAnmTexPat resAnmTexPat;
m3d::anmTexPat_c anmTexPat;
u32 _5EC;
int countdown;
u8 gap[0x12C];
USING_STATES(daEnGa... |
N-I-N-0/NSMBWii-Mod | Kamek/src/boshi.cpp | #include <common.h>
#include <game.h>
#include <profile.h>
extern "C" dCourse_c::rail_s * GetRail(int id);
const char* BoshiFileList[] = { "boshi", 0 };
class daEnBoshi_c : public dEn_c {
public:
int onCreate();
int onExecute();
int onDelete();
int onDraw();
mHeapAllocator_c allocator;
nw4r::g3d::ResFile res... |
N-I-N-0/NSMBWii-Mod | Kamek/src/windColorMgr.cpp | #include <common.h>
#include <game.h>
#include <profile.h>
#include "colour.h"
class dWindColorMgr_c : public dStageActor_c {
public:
int onCreate();
int onExecute();
int onDelete();
static dActor_c *build();
};
const char *WindColorMgrFileList[] = {0};
const SpriteData WindColorMgrSpriteData = { ProfileId::Wind... |
N-I-N-0/NSMBWii-Mod | Kamek/src/twister.cpp | #include <game.h>
const char* TwisterFileList[] = { "twister", NULL };
class daEnTwister_c : public dEn_c {
public:
int onCreate();
int onExecute();
int onDelete();
int onDraw();
void updateModelMatrices();
static dActor_c* build();
//void playerCollision(ActivePhysics *apThis, ActivePhysics *apOther);
... |
N-I-N-0/NSMBWii-Mod | Kamek/src/profile.cpp | #include <profile.h>
#if defined(REGION_K) || defined(REGION_W)
#define ORIGINAL_PROFILES 752
#else
#define ORIGINAL_PROFILES 750
#endif
/* SPRITES */
SpriteData sprites[SpriteId::Num] = { 0 };
class SpritesSetter
{
public:
SpritesSetter();
};
SpritesSetter::SpritesSetter()
{
for (u32 i = 0; i < 483; i++... |
N-I-N-0/NSMBWii-Mod | Kamek/src/urchinMods.cpp | <gh_stars>0
#include <game.h>
void rotationMawRayLR(dEn_c* self) {
if ((self->settings >> 24 & 0xF) == 1) { //MawRay
if ((self->settings >> 8 & 1) == 1) { //Right first
self->rot.x = 0x4000;
} else { //Left first
self->rot.x = 0x4000;
self->rot.y = 0x8000;
}
}
}
class daEnUnizoo_c : pub... |
N-I-N-0/NSMBWii-Mod | Kamek/src/fireball.cpp | <filename>Kamek/src/fireball.cpp
#include "fireball.h"
class daGoldFireBall_c : public daFireBall_Base_c {
public:
int onCreate(); //0x80040960
int onExecute();
int onDelete(); //0x8011AC90
int playerId;
int countedTwice;
int unk;
int isGold;
int isDying;
int radius;
int waitingTime;
daEnBlockMain_c* data... |
N-I-N-0/NSMBWii-Mod | Kamek/src/toadBlock.cpp | <gh_stars>0
extern "C" void ToadBlock_DisappearWithBooLaugh(dStageActor_c*);
void ToadBlock_DisappearWithBooLaugh(dStageActor_c *this_) {
PlaySound(this_, SE_EMY_CS_TERESA_BEAT_YOU);
S16Vec nullRot = {0, 0, 0};
Vec oneVec = {1.0f, 1.0f, 1.0f};
SpawnEffect("Wm_en_obakedoor", 0, &this_->pos, &nullRot, &on... |
N-I-N-0/NSMBWii-Mod | Kamek/src/courseSelectManager.cpp | #include "courseSelectManager.h"
CREATE_STATE(dCourseSelectManager_c, ShopWait);
CREATE_STATE(dCourseSelectManager_c, CreatorInfoWait);
void dCourseSelectManager_c::beginState_ShopWait() {
MapSoundPlayer(SoundRelatedClass, 0x79, 1);
this->sub_80931170();
this->sub_809310F0();
this->shopPtr->visible = true;
thi... |
N-I-N-0/NSMBWii-Mod | Kamek/src/boss.cpp | #include "boss.h"
void DamagePlayer(dEn_c *actor, ActivePhysics *apThis, ActivePhysics *apOther) {
actor->dEn_c::playerCollision(apThis, apOther);
actor->_vf220(apOther->owner);
// fix multiple player collisions via megazig
actor->deathInfo.isDead = 0;
actor->flags_4FC |= (1<<(31-7));
if (apOther->owner->whi... |
N-I-N-0/NSMBWii-Mod | Kamek/src/newSfx.cpp | <reponame>N-I-N-0/NSMBWii-Mod
#include <common.h>
#include <game.h>
#include <g3dhax.h>
#include <sfx.h>
const char* SoundEffects[] = {
"sfx/GoldFlower_hit", //2000
"sfx/GoldFlower_out", //2001
"sfx/GoldFlower_get", //2002
"sfx/GoldFlower_throw", //2003
"sfx/GoldFlower_get", //2004
"sfx/FlipPanel" ... |
N-I-N-0/NSMBWii-Mod | Kamek/src/frogoon.cpp | <filename>Kamek/src/frogoon.cpp
#include <common.h>
#include <game.h>
#include <g3dhax.h>
#include <sfx.h>
#include <profile.h>
extern void shyCollisionCallback(ActivePhysics *apThis, ActivePhysics *apOther);
const char* FrogoonFileList [] = {
"frogoon",
NULL
};
class daFrogoon_c : public dEn_c {
int onCreate(... |
N-I-N-0/NSMBWii-Mod | Kamek/src/yoshiCourage.cpp | <filename>Kamek/src/yoshiCourage.cpp
#include <game.h>
#include <actors.h>
void doStarEffect(daYoshi_c* yoshi) {
//OSReport("somePlayerID: %d\n", somePlayerID);
OSReport("Yoshi: %p\n", yoshi);
dAcPy_c *player;
for (int i = 0; i < 4; i++) {
if (player = dAcPy_c::findByID(i)) {
if(player->getYoshi() == yoshi) {... |
N-I-N-0/NSMBWii-Mod | Kamek/src/worldmapAnimations.cpp | char* custom_map_animation_strings[] = {
"\x93\xb9",
"\x8d\xbb",
"\x96\xd8",
"\x83W\x83\x83\x83\x93\x83v",
"\x82\xcd\x82\xb5\x82\xb2",
"\x83\x63\x83^",
"\x8d\xe2",
"\x95X\x8d\xe2",
"\x83X\x83\x43\x83\x62\x83`\x83u\x83\x8d\x83\x62\x83N",
"\x97\xac\x8d\xbb",
"\x90\xe1",
"\x95X",
"\x89_",
"\x90\x85",
"\x82\... |
N-I-N-0/NSMBWii-Mod | Kamek/src/explodingBoo.cpp | <gh_stars>0
#include <game.h>
class daEnTeresa_c : dEn_c {
public:
u8 unk1[0x7ab-0x524];
mEf::es2 effect;
ActivePhysics a2Physics;
VEC2 field651_0x978;
VEC2 field652_0x980;
VEC2 field653_0x988;
u8 unk2[0x9ab-0x990];
int stop_counter;
u8 unk3[0x9bf-0x9b0];
int counter_1;
int... |
N-I-N-0/NSMBWii-Mod | Kamek/src/worldmapAirships.cpp | <gh_stars>0
class dWMAirships_c : public dActor_c {
public:
static dActor_c *build();
dWMAirships_c();
int onCreate();
int onDelete();
int onExecute();
void updateModelMatrices();
void bindAnimChr_and_setUpdateRate(const char* name, int unk, float unk2, float rate);
bool checkCollision();
char* getModelNam... |
N-I-N-0/NSMBWii-Mod | Kamek/src/playerNumberEvent.cpp | #include <common.h>
#include <game.h>
#include <profile.h>
class playerNumberEvent : public dStageActor_c {
public:
u8 eventNums[4];
bool useTriggerEvent;
bool repeat;
bool toggelEvent;
int interval;
int timer;
void tryToTrigger();
int onCreate();
int onExecute();
static dActor_c *build();
};
const cha... |
N-I-N-0/NSMBWii-Mod | Kamek/src/darkStar.cpp | const char* DarkStarFileList [] = { "shroobUfo", NULL };
class daDarkStar_c : public dEn_c {
public:
int onCreate();
int onExecute();
int onDelete();
int onDraw();
void updateModelMatrices();
void bindAnimChr_and_setUpdateRate(const char* name, int unk, float unk2, float rate);
static dActor_c* build();
//... |
N-I-N-0/NSMBWii-Mod | Kamek/src/effectvideo.cpp | #include <common.h>
#include <game.h>
#include <g3dhax.h>
#include <sfx.h>
extern "C" bool SpawnEffect(const char*, int, Vec*, S16Vec*, Vec*);
class EffectVideo : public dEn_c {
int onCreate();
int onExecute();
int onDelete();
u64 eventFlag;
s32 timer;
u32 delay;
u32 effect;
u8 type;
float effect_scale;
... |
N-I-N-0/NSMBWii-Mod | Kamek/src/randomLooperEvent.cpp | #include <common.h>
#include <game.h>
#include <profile.h>
class randomLooperEvent : public dStageActor_c {
public:
u8 minDelayActivate, maxDelayActivate, minDelayDeactivate, maxDelayDeactivate, repeated;
int timer;
bool active;
void changeTriggerEventState();
int onCreate();
int onExecute();
static dActor_... |
N-I-N-0/NSMBWii-Mod | Kamek/src/byugo.cpp | const char* ByugoNameList [] = { "Byugo", NULL };
class daByugo_c : public dEn_c {
public:
int onCreate();
int onExecute();
int onDelete();
int onDraw();
void updateModelMatrices();
void bindAnimChr_and_setUpdateRate(const char* name, int unk, float unk2, float rate);
static dActor_c* build();
mHeapAllocat... |
N-I-N-0/NSMBWii-Mod | Kamek/src/exceptionHandler.cpp | <reponame>N-I-N-0/NSMBWii-Mod
#include "game.h"
#include "fileload.h"
const bool dsisrFun = false;
const bool gprFun = false;
u32 srr0;
const u32 dlcode = 0x80DFBCC0;
struct OSContext {
u32 gpr[32];
u32 cr;
u32 lr;
u32 ctr;
u32 xer;
double fpr[32];
u8 unknown0[8];
u32 srr[2];
u8 u... |
N-I-N-0/NSMBWii-Mod | Kamek/src/sidestepper.cpp | #include <common.h>
#include <game.h>
#include <g3dhax.h>
#include <sfx.h>
#include <stage.h>
#include <profile.h>
#include <nsmlw.h>
#include "boss.h"
extern "C" void daIce_c__breakReq(fBase_c* ice, int directionMaybe, int playerID);
#define NUMBER_OF_MINIS 3
const char* SidestepperArcNameList [] =
{
"sidestepper... |
N-I-N-0/NSMBWii-Mod | Kamek/src/kyasarin.cpp | #include <game.h>
#include <nsmlw.h>
const char* KyasarinANL [] = { "kyasarin", NULL };
class daKyasarinEgg_c : public dEn_c {
public:
int onCreate();
int onExecute();
int onDelete();
int onDraw();
void updateModelMatrices();
static dActor_c* build();
void playerCollision(ActivePhysics *apThis, ActivePh... |
N-I-N-0/NSMBWii-Mod | Kamek/src/tikiAirship.cpp | #include <common.h>
#include <game.h>
#include <profile.h>
#include "path.h"
extern "C" dCourse_c::rail_s *GetRail(int id);
const char* TikiAirshipFileList[] = { "tikiAirship", 0 };
class daTikiAirship_c : public dEnPath_c {
public:
int onCreate();
int onExecute();
int onDelete();
int onDraw();
mHeapAllocator_... |
N-I-N-0/NSMBWii-Mod | Kamek/src/UpsideDownWall.cpp | <filename>Kamek/src/UpsideDownWall.cpp
#include <common.h>
#include <game.h>
#include <profile.h>
u8 playersUpsideDown[4];
class dUpsideDownWall_c : public dStageActor_c {
public:
bool allLocations;
int locationID;
void tryToTrigger();
int onCreate();
int onExecute();
static dActor_c *build();
};
const char... |
N-I-N-0/NSMBWii-Mod | Kamek/src/topman.cpp | <gh_stars>0
#include <common.h>
#include <game.h>
#include <g3dhax.h>
#include <sfx.h>
const char* TMarcNameList [] = {
"topman",
NULL
};
class daTopman : public dEn_c {
int onCreate();
int onDelete();
int onExecute();
int onDraw();
mHeapAllocator_c allocator;
nw4r::g3d::ResFile resFile;
m3d::mdl_c bodyMo... |
N-I-N-0/NSMBWii-Mod | Kamek/src/pregame.cpp | <reponame>N-I-N-0/NSMBWii-Mod<gh_stars>1-10
#include <game.h>
#include <newer.h>
class PregameLytHandler {
public:
m2d::EmbedLayout_c layout;
nw4r::lyt::Pane *rootPane;
nw4r::lyt::TextBox
*T_minus_00, *T_world_00, *T_worldNum_00,
*T_pictureFont_00, *T_corseNum_00,
*T_remainder_00, *T_remainder_01, *T... |
N-I-N-0/NSMBWii-Mod | Kamek/src/wandDots.cpp | #include <game.h>
#include "rvl/mtx.h"
#include "rvl/GXEnum.h"
#include "rvl/GXStruct.h"
#include "rvl/GXTransform.h"
#include "rvl/GXGeometry.h"
#include "rvl/GXDispList.h"
#include "rvl/GXLighting.h"
#include "rvl/GXTev.h"
#include "rvl/GXTexture.h"
#include "rvl/GXCull.h"
#include "rvl/GXPixel.h"
#include "rvl/GXBum... |
N-I-N-0/NSMBWii-Mod | Kamek/src/exitEvent.cpp | <reponame>N-I-N-0/NSMBWii-Mod
#include <game.h>
#include <stage.h>
#include "msgbox.h"
const char *ExitEventFileList[] = {"OpeningScene", 0};
class dExitEvent_c : public dStageActor_c {
public:
static dActor_c *build();
bool hasBeenActivated;
bool hasExitedStage;
int onExecute();
};
/**********************... |
N-I-N-0/NSMBWii-Mod | Kamek/src/midwayFlag.cpp | <filename>Kamek/src/midwayFlag.cpp
bool midwayFlagActivated;
bool launchStarChipCollectedBeforeFlag[32][5]; //These are here cause they get reset by one function here
bool launchStarChipCollectedAfterFlag[32][5];
void SetMidwayBoolTrue() {
midwayFlagActivated = true;
OSReport("SetMidwayTrue\n");
}
bool SetM... |
N-I-N-0/NSMBWii-Mod | Kamek/src/waterlift.cpp | <gh_stars>0
#include <game.h>
const char* WaterliftFileList [] = {"lift_han_wood", "lift_han_stone", "lift_kinoko_yoko", "lift_han_spin", "boss_koopa_lift", "boss_koopa_lift_down", NULL};
class dWaterliftSpawner : public dStageActor_c {
public:
static dActor_c *build(); // Method to allocate memory for the actor.
... |
N-I-N-0/NSMBWii-Mod | Kamek/src/playerLocationEvent.cpp | <gh_stars>0
#include <common.h>
#include <game.h>
#include <profile.h>
bool isActivePhysicInLocation(ActivePhysics* aPhysics, u8 rectID) {
mRect rect;
dCourseFull_c::instance->get(GetAreaNum())->getRectByID(rectID, &rect);
return aPhysics->left() < rect.x + rect.width &&
rect.x < aPhysics->right() ... |
N-I-N-0/NSMBWii-Mod | Kamek/src/fileload.cpp | #include "fileload.h"
extern "C" void UncompressBackward(void *bottom);
void *LoadFile(FileHandle *handle, const char *name) {
int entryNum = DVDConvertPathToEntrynum(name);
DVDHandle dvdhandle;
if (!DVDFastOpen(entryNum, &dvdhandle)) {
return 0;
}
handle->length = dvdhandle.length;
handle->filePtr = EGG_... |
N-I-N-0/NSMBWii-Mod | Kamek/src/bossPlayerClown.cpp | #include <common.h>
#include <game.h>
#include <g3dhax.h>
#include <sfx.h>
#include "boss.h"
// #define cField(TYPE, OFFSET) (*(TYPE*)(((u32)clown) + (OFFSET)))
// #define cPlayerOccupying cField(dStageActor_c*, 0x738)
// #define cModel cField(m3d::mdl_c*, 0xFEC)
// #define cTimer cField(u32, 0xFEC+sizeof(m3d::mdl_c))... |
N-I-N-0/NSMBWii-Mod | Kamek/src/worldmapFiles.cpp | const char* EmptyFileList [] = {
NULL,
};
const char* AirshipsFileList [] = {
"cobKoopaShips",
NULL,
};
extern "C" int getLevelInfoWorldNumber(int world, int subWorld);
extern "C" u8 CurrentWorldNumForWorldMap;
extern "C" u8 CurrentWorldNumForWorldMapSub;
char** getFileListForWorld() {
u8 worldnum = getLevelIn... |
N-I-N-0/NSMBWii-Mod | Kamek/src/superBubble.cpp | #include <common.h>
#include <game.h>
#include <profile.h>
const char* SuperBubbleFileList[] = { "frogM", "PoisonMushroom", 0 };
class daSuperBubble_c : public dEn_c {
public:
int onCreate();
int onExecute();
int onDelete();
int onDraw();
mHeapAllocator_c allocator;
nw4r::g3d::ResFile resFile;
nw4r::g3d::Re... |
N-I-N-0/NSMBWii-Mod | Kamek/src/yoshiFly.cpp | <gh_stars>0
// #include <common.h>
// #include <game.h>
// #include <g3dhax.h>
// #include <daYoshi_c.h>
// #include "yoshiFly.h"
// extern int getNybbleValue(u32 settings, int fromNybble, int toNybble);
// dYoshiWingsRenderer_c *dYoshiWingsRenderer_c::build() {
// return new dYoshiWingsRenderer_c;
// }
// dYoshiWi... |
N-I-N-0/NSMBWii-Mod | Kamek/src/poweruphax.cpp | <filename>Kamek/src/poweruphax.cpp
#include <common.h>
#include <game.h>
#include <g3dhax.h>
void ThwompHammer(dEn_c *thwomp, ActivePhysics *apThis, ActivePhysics *apOther) {
if (thwomp->name == 0x51) {
thwomp->dEn_c::collisionCat13_Hammer(apThis, apOther);
}
return;
}
void BooHammer(dEn_c *boo, ActivePhysics *... |
N-I-N-0/NSMBWii-Mod | Kamek/src/BlockAnim.cpp | <reponame>N-I-N-0/NSMBWii-Mod
/**
* This function is called when the game needs to
* determine the block type when a tileset block
* is hit.
*
* Return value is:
* 0 -> Question block/default
* 1 -> Brick block
* 2 -> Breaking brick block
* 3 -> Unused -> Question
* 4 -> Invisible block
*
* Because of furt... |
N-I-N-0/NSMBWii-Mod | Kamek/src/SD/sd.cpp | <filename>Kamek/src/SD/sd.cpp
#include "game.h"
#include "SD/sd.h"
extern int IOS_Open(char*, int);
extern void IOS_Close(int);
extern void IOS_ioctl(int, int, void*, size_t, void*, size_t, int);
extern void IOS_ioctlv(int, int,int,int, void*);
typedef struct _ioctlv
{
void *data;
u32 len;
} ioctlv;
u32 SD_BLOCK_POS... |
N-I-N-0/NSMBWii-Mod | Kamek/src/launchStar.cpp | #include <common.h>
#include <game.h>
#include <profile.h>
#include <stage.h>
u8 playerStatus[4] = { 0,0,0,0 };
bool alreadyChecked;
bool checkStarChipReset(bool afterCheckpoint)
{
if (!alreadyChecked)
{
if (afterCheckpoint)
{
for (int i = 0; i < 32; i++)
{
for (int j = 0; j < 5; j++)
{
laun... |
N-I-N-0/NSMBWii-Mod | Kamek/src/yoshiFire.cpp | #include <game.h>
#include <actors.h>
void daYoshi_c::addMoreFireBalls(dStageActor_c* food) {
// code...
// Only do stuff if this is a koopa troopa. Maybe extend this to
// paratroopa's as well?
if (food->name != KOOPA_TROOPA) {
return;
}
// only select red koopa's
bool walksOffLe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.