repo_name
stringlengths
6
97
path
stringlengths
3
341
text
stringlengths
8
1.02M
tvl83/fio
libraries/wasm-jit/Source/WAST/NFA.h
<gh_stars>10-100 #pragma once #include "Inline/BasicTypes.h" #include "Inline/DenseStaticIntSet.h" #include <string> namespace NFA { // A set of characters. typedef DenseStaticIntSet<U8, 256> CharSet; // An index of a DFA state. A negative index indicates an "accepting" or terminal state. typedef I1...
tvl83/fio
libraries/wasm-jit/Include/WASM/WASM.h
<reponame>tvl83/fio #pragma once #ifndef WEBASSEMBLY_API #define WEBASSEMBLY_API DLL_IMPORT #endif #include "Inline/BasicTypes.h" namespace IR { struct Module; struct DisassemblyNames; } namespace Serialization { struct InputStream; struct OutputStream; } namespace WASM { WEBASSEMBLY_API void se...
tvl83/fio
libraries/wasm-jit/Source/WAST/Lexer.h
<reponame>tvl83/fio #pragma once #include "Inline/BasicTypes.h" #include "IR/Operators.h" #include "WAST.h" #define VISIT_OPERATOR_TOKEN(opcode, name, nameString, ...) \ VISIT_TOKEN(name,"'" #nameString "'") #define VISIT_LITERAL_TOKEN(name) VISIT_TOKEN(name,"'" #name "'") #define ENUM_LITERAL_TOKENS() \ VIS...
CreatureDev/crisp
cmain.c
#include <stdio.h> #include <stdlib.h> #include "crisp.h" #define TESTSIZE 0x5 #define DATSIZE (sizeof(float) * TESTSIZE) #define FUNSIZE (sizeof(void (*)(void)) * TESTSIZE) #define CRSSIZE (sizeof(crisp *) * TESTSIZE) static float *xp; static float *yp; static float *zp; static float *xr; static float *yr; static f...
CreatureDev/crisp
crisp.h
#ifndef __CRSIP_H__ #define __CRISP_H__ typedef struct crisp crisp; typedef void (*upfun)(void); crisp *createcrispenv(crisp *); void cleancrispenv(crisp *); void execfile(crisp *, const char *, unsigned int); void compfile(crisp *, const char *, unsigned int); #endif
mikeswanson/JBNSLayoutConstraint
JBNSLayoutConstraint/JBNSLayoutConstraint+Install.h
// // JBNSLayoutConstraint+Install.h // // Created by <NAME> on 10/8/13. // Copyright (c) 2013 <NAME>. All rights reserved. // http://blog.mikeswanson.com // // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation // files (the "Software"),...
mikeswanson/JBNSLayoutConstraint
JBNSLayoutConstraint/JBViewController.h
<filename>JBNSLayoutConstraint/JBViewController.h // // JBViewController.h // JBNSLayoutConstraint // // Created by <NAME> on 10/7/13. // Copyright (c) 2013 Juicy Bits. All rights reserved. // #import <UIKit/UIKit.h> @interface JBViewController : UIViewController @end
mikeswanson/JBNSLayoutConstraint
JBNSLayoutConstraint/JBNSLayoutConstraint+LinearEquation.h
<reponame>mikeswanson/JBNSLayoutConstraint // // JBNSLayoutConstraint+LinearEquation.h // // Created by <NAME> on 10/8/13. // Copyright (c) 2013 <NAME>. All rights reserved. // http://blog.mikeswanson.com // // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and as...
mikeswanson/JBNSLayoutConstraint
JBNSLayoutConstraint/JBAppDelegate.h
// // JBAppDelegate.h // JBNSLayoutConstraint // // Created by <NAME> on 10/7/13. // Copyright (c) 2013 Juicy Bits. All rights reserved. // #import "JBViewController.h" @interface JBAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @property (strong, nonatomic) JBV...
GrandChris/ucppcoro
include/ucppcoro/Delegate.h
// // \file Delegate.h // \author GrandChris // \date 2020-10-14 // \brief Function pointer to a member function // #pragma once #include <concepts> template<typename T> class Delegate; /// /// \class Delegate.h /// \author GrandChris /// \date 2020-10-14 /// \brief Stores a...
GrandChris/ucppcoro
include/ucppcoro/AwaitableLambda.h
// // \file AwaitableLambda.h // \author GrandChris // \date 2020-10-24 // \brief An awaitable object // #pragma once #include "Delegate.h" #if !defined(__cpp_impl_coroutine) #define __cpp_impl_coroutine 1 // just for intellisense to work properly #endif #include <coroutine> #include <conc...
GrandChris/ucppcoro
include/ucppcoro/type_traits_function_pointer.h
// // \file type_traits_function_pointer.h // \author GrandChris // \date 2020-10-26 // \brief type traits for function pointers // #pragma once #include <type_traits> #include <tuple> /// /// \class return_type /// \author GrandChris /// \date 2020-10-26 /// \brief Deduces t...
GrandChris/ucppcoro
include/ucppcoro/Promise.h
<reponame>GrandChris/ucppcoro<filename>include/ucppcoro/Promise.h // // \file promise.h // \author GrandChris // \date 2020-10-11 // \brief A promise for a coroutine // #pragma once #include <stddef.h> /// /// \class Promise /// \author GrandChris /// \date 2020-10-2...
GrandChris/ucppcoro
include/ucppcoro/Task.h
<filename>include/ucppcoro/Task.h // // \file task.h // \author GrandChris // \date 2020-10-18 // \brief A runnable task // #pragma once #include "AwaitableLambda.h" #include <array> #include <cstddef> template<size_t SIZE> class Promise; /// /// \class Task /// \author GrandChris ...
GrandChris/ucppcoro
include/ucppcoro/Event.h
<gh_stars>1-10 // // \file Event.h // \author GrandChris // \date 2020-11-21 // \brief Class for storing function pointers // // #pragma once // #include "ucppcoro/Delegate.h" // #include <cstddef> // template<size_t N, typename T> // class Event; // /// // /// \class Event.h // /// \au...
GrandChris/ucppcoro
include/ucppcoro/TestSize.h
<reponame>GrandChris/ucppcoro // // \file TestSize.h // \author GrandChris // \date 2020-10-26 // \brief Asserts the size of a coroutine // #pragma once #include "type_traits_function_pointer.h" #include <concepts> #include <cassert> template<typename T> concept FuncPtr = is_function_ptr_v<T>;...
cheetman/skyrim-sse-hud
src/utils/PlayerDataProvider.h
#pragma once #include <PCH.h> #include "utils.h" class PlayerDataProvider { public: static std::string getArrowDamage(RE::PlayerCharacter*& a_player) { RE::TESAmmo* ammo = a_player->GetCurrentAmmo(); if (ammo) { //logger::trace("Item {} is arrow"sv, ammo->GetName()); return StringUtil::getStringValueFro...
cheetman/skyrim-sse-hud
src/main.h
<reponame>cheetman/skyrim-sse-hud<filename>src/main.h #pragma once #include "event\BSTMenuEvent.h" #include "event\BSTScriptEvent.h" #include "event\BSTCrosshairRefEvent.h" #include "sse-imgui\imgui_wrapped.h" #include "sse-imgui\sse-imgui.h" #include "utils\GeneralUtil.h" #include "utils\NameUtil.h" #include "utils\P...
cheetman/skyrim-sse-hud
src/sse-imgui/sse-imgui.h
<reponame>cheetman/skyrim-sse-hud /** * @file sse-hooks.h * @brief Public C API for users of SSE Hooks * @internal * * This file is part of SSE Hooks project (aka SSE-ImGui). * * SSE-ImGui is free software: you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License a...
cheetman/skyrim-sse-hud
src/hook/hudhook.h
//#pragma once #include <cstdint> #include <PCH.h> #include "utils/utils.h" struct EnemyInfo { std::uint32_t formId = 0; std::string name = ""; // 玩家名 std::string ArrowDamage = ""; //弓箭伤害 std::string DamageRight = ""; //右手伤害 std::string DamageLeft = ""; //左手伤害 std::string DamageStr = ""; //HUD显示内...
cheetman/skyrim-sse-hud
src/utils/utils.h
<reponame>cheetman/skyrim-sse-hud #pragma once #include <PCH.h> #include <string> #include <windows.h> #include <iostream> #include <stdlib.h> namespace StringUtil { static std::string cutString(std::string a_value) { std::string text; if (a_value.find(".") != std::string::npos) { auto s = a_value.substr(a_va...
cheetman/skyrim-sse-hud
src/sse-imgui/platform.h
/** * @file platform.h * @brief Detect the current operating environment * @internal * * This file is part of SSE Hooks project (aka SSE-ImGui). * * SSE-ImGui is free software: you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free S...
cheetman/skyrim-sse-hud
src/event/BSTCrosshairRefEvent.h
#pragma once #include <PCH.h> #include "SKSE\API.h" #include "utils/utils.h" #include <string> using EventResult = RE::BSEventNotifyControl; static class BSTCrosshairRefEvent : public RE::BSTEventSink<SKSE::CrosshairRefEvent> { public: //static BSTCrosshairRefEvent* GetSingleton(); static void Register(); RE::TE...
cheetman/skyrim-sse-hud
src/event/BSTScriptEvent.h
#pragma once #include <PCH.h> using EventResult = RE::BSEventNotifyControl; class OnHitEventHandler : public RE::BSTEventSink<RE::TESHitEvent> { public: virtual EventResult ProcessEvent(const RE::TESHitEvent* a_event, RE::BSTEventSource<RE::TESHitEvent>* a_eventSource) { if (!a_event || !a_eventSource) { SKSE:...
cheetman/skyrim-sse-hud
src/event/BSTMenuEvent.h
<reponame>cheetman/skyrim-sse-hud #pragma once #include <PCH.h> static bool isOpenCursorMenu = false; class MenuOpenCloseEvent : public RE::BSTEventSink<RE::MenuOpenCloseEvent> { public: virtual RE::BSEventNotifyControl ProcessEvent(RE::MenuOpenCloseEvent const* a_event, RE::BSTEventSource<RE::MenuOpenCloseEvent>* a...
cheetman/skyrim-sse-hud
src/sse-imgui/imgui_wrapped.h
/** * @file imgui_wrapped.h * @brief Public ImGUI C API for users of SSE ImGui * @internal * * This file is part of the Skyrim SE ImGui mod (aka SSE ImGui). * * SSE ImGui includes parts licensed under MIT, that is the CImGui and ImGUI * files included in this project. Refer to their individual licenses. * ...
cheetman/skyrim-sse-hud
src/utils/NameUtil.h
#pragma once #include "RE/Skyrim.h" //Methods for converting various form data into user readable strings std::string GetName(RE::TESForm* pBaseForm); std::string GetFormTypeName(int formType); std::string GetTextureType(int textureType); std::string GetArmorTypeName(RE::TESObjectARMO::ArmorType armorType); std::str...
eraga/rxusb-android
usb4java-android/src/main/cpp/LibUsb.c
/* * Copyright (C) 2013 <NAME> (<EMAIL>) * Copyright (C) 2013 <NAME> (<EMAIL>) * See LICENSE.md file for copying conditions */ /** * @name LibUsb * * Native methods for the LibUsb class. * * @author <NAME> <<EMAIL>> * @author <NAME> <<EMAIL>> */ #include <stdlib.h> #include <stdio.h> #include <time.h> #inc...
MalTheLegend104/Breakfast-Macros
Macros/Application/x64/Release/uic/ui_MacroEditorUI.h
/******************************************************************************** ** Form generated from reading UI file 'MacroEditorUI.ui' ** ** Created by: Qt User Interface Compiler version 6.2.2 ** ** WARNING! All changes made in this file will be lost when recompiling UI file! *************************************...
MalTheLegend104/Breakfast-Macros
Macros/Application/x64/Release/uic/ui_VirtualKeyboard.h
/******************************************************************************** ** Form generated from reading UI file 'VirtualKeyboard.ui' ** ** Created by: Qt User Interface Compiler version 6.2.2 ** ** WARNING! All changes made in this file will be lost when recompiling UI file! ***********************************...
MalTheLegend104/Breakfast-Macros
Macros/Application/Settings.h
#pragma once #include <QWidget> #include "ui_Settings.h" class SettingsUI : public QWidget { Q_OBJECT public: SettingsUI(QWidget *parent = Q_NULLPTR); ~SettingsUI(); void updateGUI(); void reigsterNewAppendedKey(int key); private slots: void darkModeAction(bool a); void debugModeAction(bool a); void openToT...
MalTheLegend104/Breakfast-Macros
Macros/Application/x64/Release/uic/ui_MacroApp.h
<reponame>MalTheLegend104/Breakfast-Macros /******************************************************************************** ** Form generated from reading UI file 'MacroApp.ui' ** ** Created by: Qt User Interface Compiler version 6.2.2 ** ** WARNING! All changes made in this file will be lost when recompiling UI file!...
MalTheLegend104/Breakfast-Macros
Macros/Application/x64/Release/uic/ui_ActionEditor.h
<filename>Macros/Application/x64/Release/uic/ui_ActionEditor.h /******************************************************************************** ** Form generated from reading UI file 'ActionEditor.ui' ** ** Created by: Qt User Interface Compiler version 6.2.2 ** ** WARNING! All changes made in this file will be lost w...
MalTheLegend104/Breakfast-Macros
Macros/Application/x64/Release/uic/ui_Settings.h
<filename>Macros/Application/x64/Release/uic/ui_Settings.h /******************************************************************************** ** Form generated from reading UI file 'Settings.ui' ** ** Created by: Qt User Interface Compiler version 6.2.2 ** ** WARNING! All changes made in this file will be lost when reco...
MalTheLegend104/Breakfast-Macros
Macros/Application/x64/Release/uic/ui_DeviceUI.h
<gh_stars>1-10 /******************************************************************************** ** Form generated from reading UI file 'DeviceUI.ui' ** ** Created by: Qt User Interface Compiler version 6.2.2 ** ** WARNING! All changes made in this file will be lost when recompiling UI file! ***************************...
MalTheLegend104/Breakfast-Macros
Macros/Application/x64/Release/uic/ui_AddMacroUI.h
/******************************************************************************** ** Form generated from reading UI file 'AddMacroUI.ui' ** ** Created by: Qt User Interface Compiler version 6.2.2 ** ** WARNING! All changes made in this file will be lost when recompiling UI file! ****************************************...
obenchekroun/Fugu14
x86_64/dyldExploitMacOS_x86_64/dyldExploitMacOS_x86_64/dyld.h
<reponame>obenchekroun/Fugu14 // // dyld.h // dyldExploitMacOS_x86_64 // // Created by <NAME>. // Copyright © 2021 <NAME>. All rights reserved. // /* The definitions below were taken from dyld-750.6 */ /* License: Apple Public Source License */ /* * Copyright (c) 2017 Apple Inc. All rights reserved. * * @APPLE...
obenchekroun/Fugu14
arm/iOS/jailbreakd/Sources/asmAndC/include/server.h
<gh_stars>100-1000 // // server.h // iDownload // // Created by <NAME> on 2020-02-09. // Copyright © 2020/2021 <NAME>. All rights reserved. // #ifndef server_h #define server_h #define VERSION "1.2" #define FILE_EXISTS(file) (access(file, F_OK ) != -1) void launchCServer(void); void update_springboard_pli...
obenchekroun/Fugu14
arm/shared/KernelExploit/Sources/IOKit_iOS/IOKit_iOS.h
// // IOKit_iOS.h // IOKit_iOS // // Created by <NAME>. // Copyright © 2021 <NAME>. All rights reserved. // #ifndef externalCStuff_h #define externalCStuff_h #ifdef IOS_BUILD #include "IOKit/IOKitLib.h" #endif #endif /* externalCStuff_h */
obenchekroun/Fugu14
arm/iOS/jailbreakd/Sources/asmAndC/server.c
<reponame>obenchekroun/Fugu14 // // server.c // iDownload // // Created by <NAME> on 2020-02-09. // Copyright © 2020/2021 <NAME>. All rights reserved. // #include <stdio.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <...
obenchekroun/Fugu14
x86_64/dyldExploitMacOS_x86_64/dyldExploitMacOS_x86_64/ruby_payload.h
<filename>x86_64/dyldExploitMacOS_x86_64/dyldExploitMacOS_x86_64/ruby_payload.h // // ruby_payload.h // dyldExploitMacOS_x86_64 // // Created by <NAME>. // Copyright © 2021 <NAME>. All rights reserved. // #ifndef ruby_payload_h #define ruby_payload_h char *ruby_payload_root_shell = "require 'fiddle'\n" "require '...
obenchekroun/Fugu14
arm/iOS/jailbreakd/Sources/externalCStuff/hfs_mount.h
/* * Copyright (c) 2000-2003 Apple Computer, Inc. All rights reserved. * * @APPLE_LICENSE_OSREFERENCE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use thi...
obenchekroun/Fugu14
x86_64/dyldExploitMacOS_x86_64/dyldExploitMacOS_x86_64/MachO.h
<reponame>obenchekroun/Fugu14 // // MachO.h // iDebug // // Created by <NAME>. // Copyright © 2020/2021 <NAME>. All rights reserved. // #ifndef MachO_h #define MachO_h #import <Foundation/Foundation.h> @interface MachO : NSObject @property NSData *data; + (instancetype) createWithFile: (NSString*) file; - (in...
obenchekroun/Fugu14
arm/shared/KernelExploit/Sources/CFastFind/CFastFind.c
// // CFastFind.c // CFastFind // // Created by <NAME> on 2021-10-16. // Copyright © 2021 <NAME>. All rights reserved. // // Some utils for the offset finder // I mean, I could have written them in Swift // But then I wouldn't have been able to just copy+paste from the original Fugu // (Swift implementation would ...
obenchekroun/Fugu14
arm/iOS/jailbreakd/Sources/externalCStuff/CFUserNotification.h
<reponame>obenchekroun/Fugu14 /* CFUserNotification.h Copyright (c) 2000-2019, Apple Inc. and the Swift project authors Portions Copyright (c) 2014-2019, Apple Inc. and the Swift project authors Licensed under Apache License v2.0 with Runtime Library Exception See http://swift.org/LICENSE.txt for license infor...
obenchekroun/Fugu14
x86_64/dyldExploitMacOS_x86_64/dyldExploitMacOS_x86_64/dyld_closure.h
<filename>x86_64/dyldExploitMacOS_x86_64/dyldExploitMacOS_x86_64/dyld_closure.h // // dyld_closure.h // dyldExploitMacOS_x86_64 // // Created by <NAME>. // Copyright © 2021 <NAME>. All rights reserved. // #ifndef dyld_closure_h #define dyld_closure_h #import <Foundation/Foundation.h> #import "dyld.h" pid_t laun...
obenchekroun/Fugu14
arm/iOS/Fugu14Krw/Sources/LibKRW_Plugin/libkrw_plugin.h
#ifndef LIBKRW_PLUGIN_H #define LIBKRW_PLUGIN_H #ifdef __cplusplus extern "C" { #endif #include <stddef.h> #include <stdint.h> /** * libkrw - Library for kernel read/write * * The purpose of this library is to provide a standard interface for common * kernel memory operations. Subsets of those have historically ...
obenchekroun/Fugu14
x86_64/dyldExploitMacOS_x86_64/dyldExploitMacOS_x86_64/helper.h
// // helper.h // iDebug // // Created by <NAME>. // Copyright © 2020/2021 <NAME>. All rights reserved. // #ifndef helper_h #define helper_h #import <Foundation/Foundation.h> pid_t pidOfProcess(NSString* process); #endif /* helper_h */
DMoore12/can2usb
software/gui/src/ui.h
<filename>software/gui/src/ui.h /* * ui.h * * Handles UI updates and miscellaneous processing * * DWM - 6/27/2021 */ #ifndef _UI_H_ #define _UI_H_ #endif
DMoore12/can2usb
software/gui/src/ui.c
/* * ui.c * * Handles UI updates and miscellaneous processing * * DWM - 6/27/2021 */ #include "ui.h" //gtk_label_set_text(GTK_LABEL(wdgts_data->label_mod_volts), (gchar*) mod_volts);
DMoore12/can2usb
software/gui/src/main.c
#include <gtk-3.0/gtk/gtk.h> #include "main.h" app_widgets_usr wdgts; // User widgets GtkBuilder* builder; // Builder instance int main(int argc, char *argv[]) { GtkWidget *window; gtk_init(&argc, &argv); builder = gtk_builder_new(); gtk_builder_add_from_file(builder, "glade/mai...
DMoore12/can2usb
software/gui/src/main.h
<filename>software/gui/src/main.h #ifndef _MAIN_H_ #define _MAIN_H_ // Inlcudes #include <stdlib.h> #include <stdint.h> #include "ui.h" // Enumerations typedef enum { // MAIN_CNT must come last! MAIN_CNT // Number of main page widgets } main_page_t; typedef enum { // CONN_CNT m...
lcmftianci/webshark
PIXModule/PixImage.c
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <fcnt1.h> #include <dos.h> #include <bios.h> #include <io.h> #include <graphics.h> void initgraphs(int Vmode) { union REGS inregs,outregs; inregs.h.ah=0; inregs.h.al=Vmode; int86(0x10,&inregs,&outregs); } void set_color_map(int i,in...
mikaoj/URLImageCache
Example/Pods/Target Support Files/Pods-URLImageCache_Example/Pods-URLImageCache_Example-umbrella.h
#import <UIKit/UIKit.h> FOUNDATION_EXPORT double Pods_URLImageCache_ExampleVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_URLImageCache_ExampleVersionString[];
mikaoj/URLImageCache
Example/Pods/Target Support Files/Pods-URLImageCache_Tests-URLImageCache/Pods-URLImageCache_Tests-URLImageCache-umbrella.h
<filename>Example/Pods/Target Support Files/Pods-URLImageCache_Tests-URLImageCache/Pods-URLImageCache_Tests-URLImageCache-umbrella.h #import <UIKit/UIKit.h> FOUNDATION_EXPORT double URLImageCacheVersionNumber; FOUNDATION_EXPORT const unsigned char URLImageCacheVersionString[];
mikaoj/URLImageCache
Example/Pods/Target Support Files/Pods-URLImageCache_Tests/Pods-URLImageCache_Tests-umbrella.h
<filename>Example/Pods/Target Support Files/Pods-URLImageCache_Tests/Pods-URLImageCache_Tests-umbrella.h #import <UIKit/UIKit.h> FOUNDATION_EXPORT double Pods_URLImageCache_TestsVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_URLImageCache_TestsVersionString[];
taymoore/SupplyBattle
SupplyBattle/Button.h
#pragma once #include <Windows.h> #include <SFML/Graphics.hpp> #include "Assets.h" #include "Widget.h" class Button : public Widget { public: Button(const sf::String & string, const float & height, Widget * parent); ~Button(); bool handleEvent(sf::Event event) override; void draw(); const sf::Vector2f& getP...
taymoore/SupplyBattle
SupplyBattle/Road.h
<reponame>taymoore/SupplyBattle<filename>SupplyBattle/Road.h<gh_stars>0 #pragma once #include <array> #include <SFML\Graphics.hpp> class Tile; class Road { public: Road(Tile& tile1, Tile& tile2); ~Road(); bool contains(const Tile& tile) const; void draw(sf::RenderWindow& renderWindow); private: std::array<std:...
taymoore/SupplyBattle
SupplyBattle/Tile.h
<filename>SupplyBattle/Tile.h #pragma once #include <exception> #include <algorithm> #include <vector> #include <array> #include <cmath> #include <iostream> #include <SFML/Graphics.hpp> #include "Terrain.h" #include "Assets.h" class Player; class Unit; class Tile { public: Tile(); Tile(const int & a, const int & b,...
taymoore/SupplyBattle
SupplyBattle/Terrain.h
#pragma once #include <SFML\Graphics.hpp> #include "Assets.h" class Terrain { public: enum TerrainType { NONE, GRASSLAND, LIGHT_FOREST, THICK_FOREST, HILLS, WOODED_HILLS, MOUNTAIN, COAST, OCEAN, TOWN }; Terrain(); Terrain(const sf::Vector2<float>& pos, const Terrain::TerrainType & terrainType);...
taymoore/SupplyBattle
SupplyBattle/CheckBox.h
<gh_stars>0 #pragma once #include "Widget.h" #include "Assets.h" class CheckBox : public Widget { public: CheckBox(const sf::String & string, const float & height, Widget * parent); ~CheckBox(); bool handleEvent(sf::Event event) override; void draw(); const sf::Vector2f& getPosition() const override; void ...
taymoore/SupplyBattle
SupplyBattle/Player.h
#pragma once #include <unordered_map> #include <forward_list> #include <SFML/Graphics.hpp> #include "Tile.h" #include "Unit.h" class City; class Player { public: Player(); ~Player(); void draw(); void update(); void assignCity(Tile& tile); void setColor(const sf::Color& color); struct City { City(Player* ...
taymoore/SupplyBattle
SupplyBattle/Assets.h
#pragma once #include <SFML\Graphics.hpp> class Assets { public: Assets(); ~Assets(); const sf::Texture & getUnitTileset() const; sf::Texture& getTerrainTileset(); const sf::Texture& getTerrainTileset() const; const sf::Font& getFont() const; private: sf::Texture terrainTileset; sf::Texture un...
taymoore/SupplyBattle
SupplyBattle/Map.h
#pragma once #include <Windows.h> #include <memory> #include <array> #include <vector> #include <string> #include <list> #include <forward_list> #include <ostream> #include <sstream> #include <cstdlib> #include <random> #include <ctime> #include <algorithm> #include <functional> #include "Assets.h" #include "Tile.h" #i...
taymoore/SupplyBattle
SupplyBattle/Widget.h
#pragma once #include <vector> #include <SFML/Graphics.hpp> class Widget { public: Widget(); Widget(Widget* parent); ~Widget(); virtual void draw() {}; Widget* getParent() const; void addChild(Widget* child); virtual bool handleEvent(sf::Event event); void takeFocus(); bool hasFocus() const; virtual con...
taymoore/SupplyBattle
SupplyBattle/Building.h
<filename>SupplyBattle/Building.h #pragma once class Building { public: Building(); ~Building(); };
taymoore/SupplyBattle
SupplyBattle/DebugView.h
<filename>SupplyBattle/DebugView.h<gh_stars>0 #pragma once #include <vector> #include <map> #include <SFML/Graphics.hpp> #include "Map.h" class DebugView { public: DebugView(); ~DebugView(); void addCircle(const Tile & tile, const sf::Color & color, const float & radius = 100.0f); std::size_t eraseCircle(const T...
taymoore/SupplyBattle
SupplyBattle/Unit.h
<filename>SupplyBattle/Unit.h #pragma once #include <SFML/Graphics.hpp> #include "Assets.h" class Tile; class Unit { public: Unit(Tile& tile); ~Unit(); void draw(); private: Tile* tile; sf::Sprite sprite; };
taymoore/SupplyBattle
SupplyBattle/Label.h
<reponame>taymoore/SupplyBattle<filename>SupplyBattle/Label.h #pragma once #include <SFML/Graphics.hpp> #include "Assets.h" #include "Widget.h" class Hud; class Label : public Widget { public: Label(sf::String & string, Hud & parent); ~Label(); private: Hud& parent; sf::Text string; sf::RectangleShape backgro...
taymoore/SupplyBattle
SupplyBattle/Hud.h
<filename>SupplyBattle/Hud.h #pragma once #include <Windows.h> #include <sstream> #include <algorithm> #include <forward_list> #include <SFML/Graphics.hpp> #include "Assets.h" #include "Widget.h" #include "Button.h" #include "CheckBox.h" class Hud : public Widget { public: Hud(const sf::String & title, const sf::Vec...
jackcarrozzo/z80sim
config.h
<gh_stars>1-10 /* * Z80SIM - a Z80-CPU simulator * * Copyright (C) 1987-2008 by <NAME> * * This is the configuration I'm using for software testing and debugging * * History: * 28-SEP-87 Development on TARGON/35 with AT&T Unix System V.3 * 11-JAN-89 Release 1.1 * 08-FEB-89 Release 1.2 * 13-MAR-89 Release 1...
jackcarrozzo/z80sim
util.c
/* * Z80SIM - a Z80-CPU simulator * * Copyright (C) 1987-2008 by <NAME> * * History: * 28-SEP-87 Development on TARGON/35 with AT&T Unix System V.3 * 11-JAN-89 Release 1.1 * 08-FEB-89 Release 1.2 * 13-MAR-89 Release 1.3 * 09-FEB-90 Release 1.4 Ported to TARGON/31 M10/30 * 20-DEC-90 Release 1.5 Ported to ...
jackcarrozzo/z80sim
io.c
<reponame>jackcarrozzo/z80sim // vim:set shiftwidth=2 softtabstop=2 expandtab: /* * Z80SIM - a Z80-CPU simulator * * Copyright (C) 1987-2008 by <NAME> * 2014 fork by <NAME> <<EMAIL>> * */ #include <stdio.h> #include <signal.h> #include <sys/time.h> #include <sys/types.h> #include <sys/socket.h> #include <net...
jackcarrozzo/z80sim
main.c
<filename>main.c /* * This modul contains the 'main()' function of the simulator, * where the options are checked and variables are initialized. * After initialization of the UNIX interrupts ( int_on() ) * and initialization of the I/O simulation ( init_io() ) * the user interface ( mon() ) is called. */ // chan...
jackcarrozzo/z80sim
global.h
<filename>global.h<gh_stars>1-10 /* * Z80SIM - a Z80-CPU simulator * * Copyright (C) 1987-2008 by <NAME> * * History: * 28-SEP-87 Development on TARGON/35 with AT&T Unix System V.3 * 11-JAN-89 Release 1.1 * 08-FEB-89 Release 1.2 * 13-MAR-89 Release 1.3 * 09-FEB-90 Release 1.4 Ported to TARGON/31 M10/30 * ...
jackcarrozzo/z80sim
interrupt.c
/* * Z80SIM - a Z80-CPU simulator * * Copyright (C) 1987-2008 by <NAME> * * History: * 28-SEP-87 Development on TARGON/35 with AT&T Unix System V.3 * 11-JAN-89 Release 1.1 * 08-FEB-89 Release 1.2 * 13-MAR-89 Release 1.3 * 09-FEB-90 Release 1.4 Ported to TARGON/31 M10/30 * 20-DEC-90 Release 1.5 Ported to ...
jackcarrozzo/z80sim
io.h
typedef struct { char pio; char ctc; char dart; char other; } t_iodebug; // i've used BYTE to match the original code here, but // unsigned char or uint8_t would work identically // 82c55-specific (mode 0 only) typedef struct { // last values latched here BYTE port_a; BYTE port_b; BYTE port_c; BYTE cont...
jackcarrozzo/z80sim
global.c
<filename>global.c /* * Z80SIM - a Z80-CPU simulator * * Copyright (C) 1987-2008 by <NAME> * * History: * 28-SEP-87 Development on TARGON/35 with AT&T Unix System V.3 * 11-JAN-89 Release 1.1 * 08-FEB-89 Release 1.2 * 13-MAR-89 Release 1.3 * 09-FEB-90 Release 1.4 Ported to TARGON/31 M10/30 * 20-DEC-90 Rele...
ramy-zemo/MiniEngine
Engine/Source/Engine.h
<filename>Engine/Source/Engine.h #pragma once #include "Precompiled.h" #include "Core/Application.h" #include "Core/Event.h" #include "Core/Input.h" #include "Graphics/Renderer.h" #include "Graphics/Camera.h" #include "Graphics/Texture.h" #include "Graphics/Mesh.h" #include "Graphics/Framebuffer.h" #include "Util/M...
ramy-zemo/MiniEngine
Engine/Source/Util/Math.h
<gh_stars>1-10 #pragma once #include "Core/EngineBase.h" #include <glm/glm.hpp> namespace Engine { struct Ray { glm::vec3 origin; glm::vec3 direction; }; struct Triangle; class Math { public: static bool RayIntersectsTriangle(Ray ray, Triangle triangle); }; }
ramy-zemo/MiniEngine
Engine/Source/Core/Event.h
<gh_stars>1-10 #include "EngineBase.h" #include <glm/glm.hpp> #ifdef _MSC_VER #pragma warning(push) #pragma warning(disable : 26495) #endif namespace Engine { enum class EventType { None = 0, // Window Events WindowClosed, WindowResized, WindowMoved, // Key Events KeyPressed, KeyReleased, // Mouse ...
ramy-zemo/MiniEngine
Editor/Source/Editor.h
<gh_stars>1-10 #pragma once #include <Engine.h> #include "../imgui/imgui.h" class Editor : public Engine::Application { public: Editor(); ~Editor(); virtual void OnCreate() override; virtual void OnDestroy() override; virtual void OnUpdate(float delta) override; virtual void OnEvent(Engine::Event &event) over...
ramy-zemo/MiniEngine
Engine/Source/Graphics/Renderer.h
#pragma once #include "Core/EngineBase.h" #include <glm/glm.hpp> #include "GraphicsPipeline.h" namespace Engine { class Mesh; class Renderer { public: static void Initialize(); static void Shutdown(); static void Clear(); static void SetClearColor(const glm::vec4 &clearColor); static void RenderLin...
ramy-zemo/MiniEngine
Engine/Source/Graphics/Camera.h
#pragma once #include "Core/EngineBase.h" #include <glm/glm.hpp> namespace Engine { struct Event; class EditorCamera; class OrbitCamera { public: OrbitCamera(float fov, float aspectRatio, float nearClip, float farClip); ~OrbitCamera(); void Rotate(const glm::vec2 &offset); void Zoom(float offset); v...
microsoft/appcenter-sdk-react-native
TestApp34/ios/Pods/AppCenter/AppCenter-SDK-Apple/iOS/AppCenter.framework/Headers/MSAppCenter.h
<filename>TestApp34/ios/Pods/AppCenter/AppCenter-SDK-Apple/iOS/AppCenter.framework/Headers/MSAppCenter.h // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #import <Foundation/Foundation.h> #import "MSConstants.h" @class MSWrapperSdk; @interface MSAppCenter : NSObject ...
ravish-cts/OCDM-Playready-Nexus
MediaSession.h
<filename>MediaSession.h /* * Copyright 2016-2017 TATA ELXSI * Copyright 2016-2017 Metrological * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/...
noahzhy/cpp_2018_fall
hw12-2/linked_list.h
<reponame>noahzhy/cpp_2018_fall #ifndef __linked_list__ #define __linked_list__ #include <iostream> using namespace std; template <class T> class Node { public: T data; Node<T>* next; }; template <class T> class List { private: Node<T> *head; public: List() : head(NULL) {}; ~List() { while (head) { ...
noahzhy/cpp_2018_fall
hw12-1/MyContainer.h
#ifndef __MyContainer__ #define __MyContainer__ #include <iostream> using namespace std; template <typename T> class MyContainer { public: MyContainer() { obj_arr = NULL; n_elements = 0; } MyContainer(int n) { obj_arr = new T[n]; n_elements = n; } MyContainer(T* arr, int n) { obj_arr = ...
noahzhy/cpp_2018_fall
hw6-1/simple_shape.h
<gh_stars>0 #pragma once class circle_shape{ public: double x; double y; double r; double get_area(); double get_perimeter(); }; class rectangle_shape{ public: int x; int y; int x1; int y1; double get_area(); double get_perimeter(); };
noahzhy/cpp_2018_fall
hw8-2/draw_shape.h
#ifndef __draw_shape__ #define __draw_shape__ #include <iostream> using namespace std; class Shape { public: Shape(); Shape(int x, int y, int w, int h, char shape); double GetArea() {}; int GetPerimeter() {}; void Draw(int canvas_width, int canvas_height) {}; protected: int X, Y, x_, y_, w_, h_; char shape_;...
noahzhy/cpp_2018_fall
hw11-2/world_clock.h
<gh_stars>0 #ifndef __WorldClock__ #define __WorldClock__ #include <iostream> using namespace std; class WorldClock { public: void Tick(int seconds = 1); bool SetTime(int hour, int minute, int second); int hour() const; int minute() const; int second() const; private: int s=0; }; ostream& operator<<(ostream& o...
noahzhy/cpp_2018_fall
hw11-2/calendar.h
#ifndef __calendar__ #define __calendar__ #include <iostream> using namespace std; class Date { public: Date(); Date(int year, int month, int day); void NextDay(int n = 1); bool SetDate(int year, int month, int day); int year() const; int month() const; int day() const; private: static int GetDaysInYear(int...
noahzhy/cpp_2018_fall
hw7-1/integer_set.h
#ifndef __integer_set__ #define __integer_set__ #include <iostream> #include <vector> using namespace std; class IntegerSet { public: IntegerSet(); ~IntegerSet(); void AddNumber(int num); void DeleteNumber(int num); int GetItem(int pos) const; std::vector<int> GetAll() const; private: std::vector<int> numbe...
noahzhy/cpp_2018_fall
hw9-2/Animals.h
<gh_stars>0 #ifndef __Animals__ #define __Animals__ #include <iostream> using namespace std; class Animal { public: Animal(int age, string name); virtual void printInfo(); protected: string name; int age; }; class Zebra : public Animal { public: Zebra(int age, string name, int numStripes); virtual void printIn...
noahzhy/cpp_2018_fall
hw6-2/reply_admin.h
#ifndef __reply_admin__ #define __reply_admin__ #include <iostream> using namespace std; class ReplyAdmin { private: string *chats; public: ReplyAdmin(); ~ReplyAdmin(); int getChatCount(); bool addChat(string _chat); bool removeChat(int _index); bool removeChat(int *_indices, int _count); bool remo...
noahzhy/cpp_2018_fall
hw10-2/print_shape.h
<filename>hw10-2/print_shape.h #ifndef __print_shape__ #define __print_shape__ #include <iostream> using namespace std; #define pi 3.141592 class Shape{ public: virtual double getArea() = 0; virtual double getPerimeter() = 0; virtual string getTypeString() = 0; protected: double area; double perimeter; str...
noahzhy/cpp_2018_fall
hw11-1/MyVector.h
#ifndef __MyVector__ #define __MyVector__ #include <iostream> using namespace std; class MyVector { private: int max_num; double* a; public: MyVector(int m); ~MyVector(); MyVector operator+(const MyVector & a); MyVector operator-(const MyVector & a); MyVector operator+(const int a); MyVector operator...
noahzhy/cpp_2018_fall
hw8-1/number.h
#ifndef __number__ #define __number__ #include <iostream> using namespace std; class Number { protected: int _num; public: void setNumber(int num) { _num = num; } int getNumber() { return _num; } }; class Square: public Number { public: int getSquare(); }; class Cube: public Square { public: int getCube (...
noahzhy/cpp_2018_fall
hw8-1/rectangle.h
<gh_stars>0 #include <iostream> #ifndef __rectangle__ #define __rectangle__ using namespace std; class Rectangle { public: Rectangle(int width, int height); int getArea(); int getPerimeter(); protected: int width_; int height_; }; class Square: public Rectangle { public: Square (int width); void print(); }; c...
noahzhy/cpp_2018_fall
hw7-2/message_book.h
#ifndef __message_book__ #define __message_book__ #include <iostream> #include <map> #include <vector> #include <string> using namespace std; class MessageBook { public: MessageBook(); ~MessageBook(); void AddMessage(int number, const string& message); void DeleteMessage(int number); vector<int> GetNumbers() con...