repo_name stringlengths 6 97 | path stringlengths 3 341 | text stringlengths 8 1.02M |
|---|---|---|
creosB/Return-Of-the-Gorm | Source Code/Source/ReturnoftheGorm/BallBoss.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Pawn.h"
#include "NiagaraSystem.h"
#include "Engine/TriggerVolume.h"
#include "BallBoss.generated.h"
USTRUCT()
struct FShamanEffect
{
GENERATED_BODY()
public:
// Niagara Effe... |
creosB/Return-Of-the-Gorm | Source Code/Source/ReturnoftheGorm/BTService_PlayerLocationIfSeen.h | <gh_stars>0
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "ContraAIController.h"
#include "BehaviorTree/Services/BTService_BlackboardBase.h"
#include "BTService_PlayerLocationIfSeen.generated.h"
UCLASS()
class RETURNOFTHEGORM_API UBTSer... |
creosB/Return-Of-the-Gorm | Source Code/Source/ReturnoftheGorm/FireObstacle.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "FireObstacleSpawner.h"
#include "GameFramework/Actor.h"
#include "NiagaraComponent.h"
#include "FireObstacle.generated.h"
class UActorMovement;
class AContraCharacter;
UCLASS()
class RETURN... |
creosB/Return-Of-the-Gorm | Source Code/Source/ReturnoftheGorm/OpenDoor.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Components/ActorComponent.h"
#include "OpenDoor.generated.h"
class AContraCharacter;
UCLASS(ClassGroup=(Custom), meta=(BlueprintSpawnableComponent))
class RETURNOFTHEGORM_API UOpenDoor : pu... |
creosB/Return-Of-the-Gorm | Source Code/Source/ReturnoftheGorm/ContraAIController.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "AIController.h"
#include "ContraAIController.generated.h"
UCLASS()
class RETURNOFTHEGORM_API AContraAIController : public AAIController
{
GENERATED_BODY()
private:
UPROPERTY(EditAnywhere)... |
creosB/Return-Of-the-Gorm | Source Code/Source/ReturnoftheGorm/HealthBox.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "HealthBox.generated.h"
UCLASS()
class RETURNOFTHEGORM_API AHealthBox : public AActor
{
GENERATED_BODY()
public:
// Sets default values for this actor's pr... |
creosB/Return-Of-the-Gorm | Source Code/Source/ReturnoftheGorm/ElecticShock.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Pawn.h"
#include "NiagaraComponent.h"
#include "Engine/TriggerVolume.h"
#include "ElecticShock.generated.h"
class AContraCharacter;
UCLASS()
class RETURNOFTHEGORM_API AElectic... |
creosB/Return-Of-the-Gorm | Source Code/Source/ReturnoftheGorm/DynamicTurret.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "ContraCharacter.h"
#include "PawnBase.h"
#include "DynamicTurret.generated.h"
UCLASS()
class RETURNOFTHEGORM_API ADynamicTurret : public APawnBase
{
GENERATED_BODY()
public:
// Sets defa... |
creosB/Return-Of-the-Gorm | Source Code/Source/ReturnoftheGorm/PawnBase.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Pawn.h"
#include "PawnBase.generated.h"
class UCapsuleComponent;
class AProjectileBase;
class AKillEmAllGameMode;
UCLASS()
class RETURNOFTHEGORM_API APawnBase : public APawn
{... |
creosB/Return-Of-the-Gorm | Source Code/Source/ReturnoftheGorm/HoverBoss.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "ContraCharacter.h"
#include "Engine/TriggerVolume.h"
#include "GameFramework/Pawn.h"
#include "HoverBoss.generated.h"
class AKillEmAllGameMode;
UCLASS()
class RETURNOFTHEGORM_API AHoverBoss... |
creosB/Return-Of-the-Gorm | Source Code/Source/ReturnoftheGorm/RobotBoss.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Pawn.h"
#include "Engine/TriggerVolume.h"
#include "RobotBoss.generated.h"
class UCapsuleComponent;
class AProjectileBase;
class AKillEmAllGameMode;
class AContraCharacter;
UC... |
creosB/Return-Of-the-Gorm | Source Code/Source/ReturnoftheGorm/FireObstacleSpawner.h | <reponame>creosB/Return-Of-the-Gorm
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Pawn.h"
#include "Engine/TriggerVolume.h"
#include "FireObstacleSpawner.generated.h"
// Direction Choice
UENUM(BlueprintType)
enum ESpawnDir... |
creosB/Return-Of-the-Gorm | Source Code/Source/ReturnoftheGorm/Spawner.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Engine/TriggerVolume.h"
#include "GameFramework/Actor.h"
#include "Spawner.generated.h"
class UActorMovement;
UCLASS()
class RETURNOFTHEGORM_API ASpawner : public AActor
{
GENERATED_BODY(... |
creosB/Return-Of-the-Gorm | Source Code/Source/ReturnoftheGorm/PawnTurret.h | <reponame>creosB/Return-Of-the-Gorm<filename>Source Code/Source/ReturnoftheGorm/PawnTurret.h
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "ContraCharacter.h"
#include "PawnBase.h"
#include "PawnTurret.generated.h"
UENUM()
enum EGunType
... |
creosB/Return-Of-the-Gorm | Source Code/Source/ReturnoftheGorm/Boomer.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Enemy.h"
#include "GameFramework/Actor.h"
#include "Boomer.generated.h"
UCLASS()
class RETURNOFTHEGORM_API ABoomer : public AActor
{
GENERATED_BODY()
public:
// Sets default values for t... |
creosB/Return-Of-the-Gorm | Source Code/Source/ReturnoftheGorm/FireBridge.h | <reponame>creosB/Return-Of-the-Gorm
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "Components/AudioComponent.h"
#include "FireBridge.generated.h"
class UBoxComponent;
UCLASS()
class RETURNOFTHEGORM_API A... |
creosB/Return-Of-the-Gorm | Source Code/Source/ReturnoftheGorm/Gun.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "Gun.generated.h"
class AProjectileBase;
UCLASS()
class RETURNOFTHEGORM_API AGun : public AActor
{
GENERATED_BODY()
public:
// Sets default values for thi... |
creosB/Return-Of-the-Gorm | Source Code/Source/ReturnoftheGorm/DestroyerRobot.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "FireObstacle.h"
#include "ProjectileBase.h"
#include "Engine/TriggerVolume.h"
#include "GameFramework/Pawn.h"
#include "Components/PoseableMeshComponent.h"
#include "DestroyerRobot.generated... |
creosB/Return-Of-the-Gorm | Source Code/Source/ReturnoftheGorm/HoverMini.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "ContraCharacter.h"
#include "HoverBoss.h"
#include "GameFramework/Pawn.h"
#include "HoverMini.generated.h"
UCLASS()
class RETURNOFTHEGORM_API AHoverMini : public APawn
{
GENERATED_BODY()
p... |
creosB/Return-Of-the-Gorm | Source Code/Source/ReturnoftheGorm/ContraPlayerController.h | <filename>Source Code/Source/ReturnoftheGorm/ContraPlayerController.h
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/PlayerController.h"
#include "ContraPlayerController.generated.h"
/**
*
*/
UCLASS()
class RETURNOFTHEGO... |
creosB/Return-Of-the-Gorm | Source Code/Source/ReturnoftheGorm/Enemy.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "ContraCharacter.h"
#include "Spawner.h"
#include "GameFramework/Character.h"
#include "Enemy.generated.h"
class UBoxComponent;
UCLASS()
class RETURNOFTHEGORM_API AEnemy : public AContraCha... |
dsapandora/SystemMonitor | client/processes_count.h | <reponame>dsapandora/SystemMonitor
#ifdef __linux__
#include <sys/sysinfo.h>
#elif defined(__APPLE__)
#include <sys/sysctl.h>
#elif defined(WIN32)
#include <Psapi.h>
#endif
int GetTotalNumProcesses() {
#if defined(__linux__)
struct sysinfo si;
return (sysinfo(&si) == 0) ? (int)si.procs : (int)-1;
#elif defined(__A... |
dsapandora/SystemMonitor | client/cpu_usage.h | #ifdef _WIN32
#include "TCHAR.h"
#include "pdh.h"
#include "windows.h"
static PDH_HQUERY cpuQuery;
static PDH_HCOUNTER cpuTotal;
#else
#include "stdio.h"
#include "stdlib.h"
#include "string.h"
static unsigned long long lastTotalUser, lastTotalUserLow, lastTotalSys,
lastTotalIdle;
#endif
double cpu() {
#if defin... |
dsapandora/SystemMonitor | models/client.h | <gh_stars>0
#include <iostream>
#include <string>
#pragma once
using namespace std;
class Client {
public:
string machine;
string token;
Client();
Client(string machine, string token);
void createClient();
static Client *searchClient(string machine, string token);
};
|
dsapandora/SystemMonitor | models/data.h | <reponame>dsapandora/SystemMonitor
#include <iostream>
#include <string>
#pragma once
using namespace std;
class Data {
public:
string machine;
string token;
double cpu_usage;
double memory_usage;
double disk_usage;
int process_count;
Data();
Data(string machine, string token, double cpu_usage, doubl... |
dsapandora/SystemMonitor | helpers/send_email.h | <reponame>dsapandora/SystemMonitor
#include "../models/data.h"
#include <Poco/Net/HTTPClientSession.h>
#include <Poco/Net/HTTPRequest.h>
#include <Poco/Net/HTTPResponse.h>
#include <Poco/Net/MailMessage.h>
#include <Poco/Net/MailRecipient.h>
#include <Poco/Net/NetException.h>
#include <Poco/Net/SMTPClientSession.h>
#in... |
dsapandora/SystemMonitor | client/memory_usage.h | <gh_stars>0
#ifdef _WIN32
#include "windows.h"
#else
#include "sys/sysinfo.h"
#include "sys/types.h"
struct sysinfo memInfo;
#endif
double memory() {
#if defined(WIN32)
PROCESS_MEMORY_COUNTERS_EX pmc;
GetProcessMemoryInfo(GetCurrentProcess(), &pmc, sizeof(pmc));
SIZE_T virtualMemUsedByMe = pmc.PrivateUsage;
D... |
daniel-kelley/libriffr | riffr_get_chunk_type.c | /*
riffr_get_chunk_type.c
Copyright (c) 2021 by <NAME>
*/
#include "riffr.h"
#include "riffr_internal.h"
#define CHAR_AT(c, bitpos) (((c) >> (bitpos)) & 0xff)
int riffr_get_chunk_type(struct riffr *handle,
uint32_t chunk_id,
struct riffr_chunk_type *type)
{
... |
daniel-kelley/libriffr | riffr-info.c | /*
riffr-info.c
Copyright (c) 2021 by <NAME>
*/
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stddef.h>
#include "riffr.h"
static int is_wave_fmt(const char *form_str,
const char *chunk_str)
{
return !strcmp(form_str, "WAVE") && !strcmp(chunk_str, "fmt ");
}
... |
daniel-kelley/libriffr | riffr_close.c | <filename>riffr_close.c
/*
riffr_close.c
Copyright (c) 2021 by <NAME>
*/
#include <stdlib.h>
#include <string.h>
#include "riffr_internal.h"
int riffr_close(struct riffr *handle)
{
int rc = 0;
if (handle) {
fclose(handle->f);
memset(handle, 0, sizeof(*handle));
free(handle);
... |
daniel-kelley/libriffr | riffr_read_chunk_body.c | /*
riffr_read_chunk_body.c
Copyright (c) 2021 by <NAME>
*/
#include <stdio.h>
#include "riffr.h"
#include "riffr_internal.h"
int riffr_read_chunk_body(struct riffr *handle,
size_t size,
void *buffer)
{
int err = -1;
if (handle) {
if (buffer)... |
daniel-kelley/libriffr | riffr_read_data.c | /*
riffr_read_data.c
Copyright (c) 2021 by <NAME>
*/
#include <stdio.h>
#include "riffr.h"
#include "riffr_internal.h"
static int riffr_read_dword_internal(struct riffr *handle,
size_t *length,
void **buffer,
... |
daniel-kelley/libriffr | riffr_read_chunk_header.c | /*
riffr_read_chunk_header.c
Copyright (c) 2021 by <NAME>
*/
#include "riffr.h"
#include "riffr_internal.h"
int riffr_read_chunk_header(struct riffr *handle,
struct riffr_chunk_header *header)
{
int err = -1;
int rc;
do {
if (!handle || !header) {
... |
daniel-kelley/libriffr | riffr_internal.h | /*
riffr_internal.h
Copyright (c) 2021 by <NAME>
See http://www-mmsp.ece.mcgill.ca/Documents/AudioFormats/WAVE/WAVE.html
*/
#ifndef RIFFR_INTERNAL_H_
#define RIFFR_INTERNAL_H_
#include <stdio.h>
#include <inttypes.h>
#include "riffr.h"
#define RIFFR_RIFF_TAG 0x46464952
/* handle */
struct riffr {
... |
daniel-kelley/libriffr | riffr.h | /*
riffr.h
Copyright (c) 2021 by <NAME>
RIFF file reader.
*/
#ifndef RIFFR_H_
#define RIFFR_H_
#include <stdio.h>
#include <inttypes.h>
struct riffr;
struct riffr_chunk_header {
uint32_t id; /* Chunk ID */
uint32_t size; /* Size in bytes */
};
#define RIFFR_TYPE_... |
daniel-kelley/libriffr | riffr_filename.c | <reponame>daniel-kelley/libriffr
/*
riffr_filename.c
Copyright (c) 2021 by <NAME>
*/
#include "riffr.h"
#include "riffr_internal.h"
const char *riffr_filename(const struct riffr *handle)
{
return handle->filename;
}
|
daniel-kelley/libriffr | riffr_open.c | /*
riffr_open.c
Copyright (c) 2021 by <NAME>
*/
#define _DEFAULT_SOURCE
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <endian.h>
#include "riffr_internal.h"
static uint16_t riffr_le16toh(uint16_t data)
{
return le16toh(data);
}
static uint32_t riffr_le32toh(uint32... |
silan-liu/ManageLocalCode | ManageLocalCode/Test.h | //
// Test.h
// ManageLocalCode
//
// Created by silan on 16/4/15.
// Copyright © 2016年 summer-liu. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface Test : NSObject
- (void)test;
@end
|
Ostrea/SDL-2D-Game | contentmanager.h | #ifndef CONTENTMANAGER_H
#define CONTENTMANAGER_H
#include "SDL/SDL.h"
class ContentManager {
public:
void loadContent();
void unloadContent();
SDL_Surface *getBackground() const {
return background;
}
SDL_Surface *getAnimal() const {
return animal;
}
SDL_Surface *getB... |
Ostrea/SDL-2D-Game | enternamescreen.h | <gh_stars>0
#ifndef ENTERNAMESCREEN_H
#define ENTERNAMESCREEN_H
#include "gamescreen.h"
#include <vector>
class EnterNameScreen : public GameScreen {
public:
EnterNameScreen();
virtual void loadContent();
virtual void unloadContent();
virtual void handleInput(const SDL_Event &event);
virtual ... |
Ostrea/SDL-2D-Game | constants.h | #ifndef CONSTANTS_H
#define CONSTANTS_H
enum class ScreenState{
ACTIVE,
HIDDEN,
};
#endif // CONSTANTS_H |
Ostrea/SDL-2D-Game | helpscreen.h | #ifndef HELPSCREEN_H
#define HELPSCREEN_H
#include "gamescreen.h"
class HelpScreen : public GameScreen {
public:
HelpScreen() {
popup = true;
}
virtual void loadContent() override;
virtual void unloadContent() override;
virtual void handleInput(const SDL_Event &event) override;
vi... |
Ostrea/SDL-2D-Game | backgroundscreen.h | <reponame>Ostrea/SDL-2D-Game
#ifndef BACKGROUND_H
#define BACKGROUND_H
#include "gamescreen.h"
class BackgroundScreen : public GameScreen {
public:
virtual void loadContent() override;
virtual void unloadContent() override;
virtual void handleInput(const SDL_Event &event) override;
virtual void dr... |
Ostrea/SDL-2D-Game | animal.h | <gh_stars>0
#ifndef ANIMAL_H
#define ANIMAL_H
#include "drawableelement.h"
#include "controllableelement.h"
#include "movableelement.h"
#include "contentmanager.h"
#include "collideableelement.h"
#include <memory>
class Bullet;
class Animal : public DrawableElement, public MovableElement, public CollideableElement {... |
Ostrea/SDL-2D-Game | screenmanager.h | #ifndef SCREENMANAGER_H
#define SCREENMANAGER_H
#include <memory>
#include <list>
#include <SDL/SDL_events.h>
#include <SDL/SDL_ttf.h>
#include <vector>
class GameScreen;
class ScreenManager {
public:
void loadContent();
void unloadContent();
void handleEvents(const SDL_Event &event);
void update... |
Ostrea/SDL-2D-Game | collideableelement.h | #ifndef COLLIDEABLEELEMENT_H
#define COLLIDEABLEELEMENT_H
#include <memory>
#include "SDL/SDL.h"
class CollideableElement {
public:
virtual bool hasCollided(std::shared_ptr<CollideableElement> anotherElement) = 0;
virtual SDL_Rect getCollisionRectangle() const = 0;
virtual ~CollideableElement() {}
};
#e... |
Ostrea/SDL-2D-Game | timer.h | <reponame>Ostrea/SDL-2D-Game<filename>timer.h
#ifndef TIMER_H
#define TIMER_H
class Timer {
public:
Timer();
void start();
Uint32 getTicks();
void pause();
void unpause();
private:
Uint32 startTicks;
Uint32 pausedTicks;
bool running;
};
#endif // TIMER_H |
Ostrea/SDL-2D-Game | background.h | <gh_stars>0
#ifndef BACKGROUND_H
#define BACKGROUND_H
#include "drawableelement.h"
#include "contentmanager.h"
class Background : public DrawableElement {
public:
Background(int x, int y, ContentManager const &contentManager);
virtual bool initialize() override;
virtual void update() override;
private... |
Ostrea/SDL-2D-Game | controllableelement.h | #ifndef CONTROLLABLEELEMENT_H
#define CONTROLLABLEELEMENT_H
#include "SDL/SDL.h"
class ControllableElement {
public:
virtual void handleInput(SDL_Event const &event) = 0;
virtual ~ControllableElement() {}
};
#endif // CONTROLLABLEELEMENT_H |
Ostrea/SDL-2D-Game | player.h | <filename>player.h
#ifndef PLAYER_H
#define PLAYER_H
#include "controllableelement.h"
#include "drawableelement.h"
#include "bullet.h"
#include <list>
#include <memory>
class Player : public ControllableElement, public DrawableElement, public MovableElement {
public:
Player(int x, int y, ContentManager const &co... |
Ostrea/SDL-2D-Game | mainmenuscreen.h | #ifndef MAINMENUSCREEN_H
#define MAINMENUSCREEN_H
#include "menuscreen.h"
class MainMenuScreen : public MenuScreen {
public:
MainMenuScreen() {
popup = true;
}
virtual void loadContent() override;
virtual void unloadContent() override;
virtual void draw() override;
private:
SDL_Su... |
Ostrea/SDL-2D-Game | menuscreen.h | <reponame>Ostrea/SDL-2D-Game<filename>menuscreen.h
#ifndef MENUSCREEN_H
#define MENUSCREEN_H
#include "gamescreen.h"
#include <vector>
#include "menuentry.h"
class MenuScreen : public GameScreen {
public:
virtual void handleInput(const SDL_Event &event) override;
virtual void draw() override;
protected:
... |
Ostrea/SDL-2D-Game | bullet.h | #ifndef BULLET_H
#define BULLET_H
#include "drawableelement.h"
#include "controllableelement.h"
#include "movableelement.h"
#include "contentmanager.h"
#include "collideableelement.h"
class Animal;
class Bullet : public DrawableElement, public MovableElement, public CollideableElement {
public:
Bullet(int x, in... |
Ostrea/SDL-2D-Game | game.h | <reponame>Ostrea/SDL-2D-Game<gh_stars>0
#ifndef GAME_H
#define GAME_H
#include "SDL/SDL.h"
#include "background.h"
#include "player.h"
#include "animal.h"
#include <list>
#include <memory>
#include "contentmanager.h"
class Game {
public:
Game();
int run();
private:
bool running;
SDL_Surface *canvas... |
Ostrea/SDL-2D-Game | gameplayscreen.h | <reponame>Ostrea/SDL-2D-Game
#ifndef PLAYSCREEN_H
#define PLAYSCREEN_H
#include "gamescreen.h"
#include "drawableelement.h"
#include "bullet.h"
#include "player.h"
#include <memory>
#include <list>
#include "contentmanager.h"
#include "timer.h"
#include "SDL/SDL.h"
class GameplayScreen : public GameScreen {
public:
... |
Ostrea/SDL-2D-Game | pausemenuscreen.h | <filename>pausemenuscreen.h
#ifndef PAUSEMENUSCREEN_H
#define PAUSEMENUSCREEN_H
#include "menuscreen.h"
class PauseMenuScreen : public MenuScreen {
public:
PauseMenuScreen(Timer &gameTimer) : gameTimer(gameTimer) {
}
virtual void loadContent() override;
virtual void unloadContent() override;
priva... |
Ostrea/SDL-2D-Game | menuentry.h | #ifndef MENUENTRY_H
#define MENUENTRY_H
#include <string>
#include "gameplayscreen.h"
class ScreenManager;
class MenuEntry {
public:
MenuEntry(std::string text, TTF_Font *font, int x, int y,
std::function<void(void)> actionOnSelection);
void onSelect();
void draw(bool selected);
private:
... |
Ostrea/SDL-2D-Game | gamescreen.h | <gh_stars>0
#ifndef GAMESCREEN_H
#define GAMESCREEN_H
#include "SDL/SDL.h"
#include "screenmanager.h"
#include "constants.h"
class ScreenManager;
class GameScreen {
public:
GameScreen();
virtual void loadContent() = 0;
virtual void unloadContent() = 0;
virtual void handleInput(const SDL_Event &ev... |
Ostrea/SDL-2D-Game | drawableelement.h | <gh_stars>0
#ifndef DRAWABLEELEMENT_H
#define DRAWABLEELEMENT_H
#include "SDL/SDL.h"
class DrawableElement {
public:
DrawableElement(int x, int y);
virtual ~DrawableElement();
virtual void draw() const;
virtual bool initialize() = 0;
virtual void update() = 0;
virtual bool isAlive() cons... |
Ostrea/SDL-2D-Game | gametemp.h | #ifndef GAMETEMP_H
#define GAMETEMP_H
#include "SDL/SDL.h"
#include "contentmanager.h"
#include "screenmanager.h"
class Game {
public:
Game();
int run();
private:
bool running;
SDL_Surface *canvas;
ScreenManager screenManager;
// константы
const int SCREEN_WIDTH = 800;
const int SC... |
Ostrea/SDL-2D-Game | functions.h | <filename>functions.h
#ifndef FUNCTIONS_H
#define FUNCTIONS_H
#include "SDL/SDL.h"
#include <string>
SDL_Surface *loadImage(std::string fileName);
void applySurface(int x, int y, SDL_Surface *source,
SDL_Surface *destination, SDL_Rect *clip = nullptr);
#endif // FUNCTIONS_H |
Ostrea/SDL-2D-Game | movableelement.h | <gh_stars>0
#ifndef MOVABLEELEMENT_H
#define MOVABLEELEMENT_H
class MovableElement {
public:
virtual ~MovableElement() {}
protected:
MovableElement() {}
};
#endif // MOVABLEELEMENT_H |
Ostrea/SDL-2D-Game | highscoresscreen.h | <filename>highscoresscreen.h
#ifndef HIGHSCORESSCREEN_H
#define HIGHSCORESSCREEN_H
#include <vector>
#include "gamescreen.h"
class HighScoresScreen : public GameScreen {
public:
HighScoresScreen();
HighScoresScreen(int currentScores) ;
virtual void loadContent();
virtual void unloadContent();
... |
Mr-Solution/CPL | list/linkedlist_test.c | <filename>list/linkedlist_test.c
/*************************************************************************
> File Name: linkedlist_test.c
> Author: reeves
> Mail: <EMAIL>
> Created Time: 2018年07月10日 星期二 19时17分26秒
************************************************************************/
#include <stdio.h>
#inclu... |
Mr-Solution/CPL | evaluation/P3/sqtest.c | <gh_stars>1-10
#include "sequentialStack.h"
int main() {
char testdata[] = "helloworldthisisatestprogram";
printf("sizeof testdata is %d\n",sizeof(testdata));
SqStack *s = (SqStack *)malloc(sizeof(SqStack));
InitStack(s);
for (int i=0; i<100; ++i) {
if(Push(s, testdata[i]))
prin... |
Mr-Solution/CPL | stack/sqstack.c | <reponame>Mr-Solution/CPL
/*************************************************************************
> File Name: sqstack.c
> Description: linear stack
> Author: libo
> Mail: <EMAIL>
> Created Time: 2018年07月09日 星期一 16时19分58秒
************************************************************************/
#includ... |
Mr-Solution/CPL | evaluation/P2/expressionEvaluation.h | /*************************************************************************
> File Name: expressionEvaluation.h
> Author: reeves
> Mail: <EMAIL>
> Created Time: 16/07/2018 - 16:49
************************************************************************/
#ifndef EXPRESSIONEVALUATION_H_
#define EXPRESSIONEVALUATION... |
Mr-Solution/CPL | evaluation/P2/sequentialStack.c | <filename>evaluation/P2/sequentialStack.c
/*************************************************************************
> File Name: sqstack.c
> Description: linear stack
> Author: libo
> Mail: <EMAIL>
> Created Time: 2018年07月09日 星期一 16时19分58秒
******************************************************************... |
Mr-Solution/CPL | evaluation/sequentialStack.h | /*************************************************************************
> File Name: sequentialStack.h
> Description: linear stack
> Author: libo
> Mail: <EMAIL>
> Created Time: 09/07/2018 - 15:47
************************************************************************/
#ifndef SQSTACK_H_
#define SQSTACK_... |
Mr-Solution/CPL | evaluation/P2/c99.c | /*************************************************************************
> File Name: c99.c
> Author: reeves
> Mail: <EMAIL>
> Created Time: 26/07/2018 - 16:29
************************************************************************/
#include <stdio.h>
int main() {
#ifdef __STDC__
printf("%s\n"... |
Mr-Solution/CPL | stack/lstack.h | /*************************************************************************
> File Name: lstack.h
> Description: linked stack
> Author: libo
> Mail: <EMAIL>
> Created Time: 2018年07月09日 星期一 20时42分24秒
************************************************************************/
#ifndef LSTACK_H_
#define LSTACK_H_
... |
Mr-Solution/CPL | stack/lstack.c | /*************************************************************************
> File Name: lstack.c
> Description: linked stack
> Author: libo
> Mail: <EMAIL>
> Created Time: 2018年07月09日 星期一 20时51分06秒
************************************************************************/
#include <stdio.h>
#include <stdlib.h... |
Mr-Solution/CPL | evaluation/P3/sequentialStack.c | <reponame>Mr-Solution/CPL<filename>evaluation/P3/sequentialStack.c
/*************************************************************************
> File Name: sequentialStack.c
> Author: libo
> Mail: <EMAIL>
> Created Time: 30/07/2018 - 18:55
***************************************************************... |
Mr-Solution/CPL | evaluation/expressionEvaluation.c | <gh_stars>1-10
/*************************************************************************
> File Name: expressionEvaluation.h
> Author: reeves
> Mail: <EMAIL>
> Created Time: 16/07/2018 - 16:49
************************************************************************/
#include "expressionEvaluation.h"
#include "s... |
Mr-Solution/CPL | stack/sqstack_test.c | /*************************************************************************
> File Name: main.c
> Description: linear stack
> Author: libo
> Mail: <EMAIL>
> Created Time: 2018年07月09日 星期一 19时31分15秒
************************************************************************/
#include <stdio.h>
#include "sqstack... |
Mr-Solution/CPL | list/sqlist_test.c | /*************************************************************************
> File Name: sqlist_test.c
> Author: reeves
> Mail: <EMAIL>
> Created Time: 2018年07月09日 星期一 11时17分45秒
************************************************************************/
#include <stdio.h>
#include "sqlist.h"
int main() {
SqLis... |
Mr-Solution/CPL | list/linkedlist.c | <reponame>Mr-Solution/CPL
/*************************************************************************
> File Name: linkedlist.c
> Author: reeves
> Mail: <EMAIL>
> Created Time: 2018年07月10日 星期二 16时34分52秒
************************************************************************/
#include <stdio.h>
#include <stdlib.h... |
Mr-Solution/CPL | exer1part1/seqstack.c | #include <stdio.h>
#include <stdlib.h>
#include "seqstack.h"
Stack *resize(Stack* stack) {
printf("the capacity of the stack is %d and the stack is full! \n", getSize(stack));
printf("now resize the stack, the new capacity is %d\n", 2*stack->capacity);
stack->capacity *= 2;
void* new = malloc(sizeof(stack->data... |
Mr-Solution/CPL | stack/lstack_test.c | <filename>stack/lstack_test.c<gh_stars>1-10
/*************************************************************************
> File Name: lstack_test.c
> Description: linked stack test
> Author: libo
> Mail: <EMAIL>
> Created Time: 2018年07月09日 星期一 22时15分45秒
**********************************************************... |
Mr-Solution/CPL | evaluation/expressionEvaluation.h | /*************************************************************************
> File Name: expressionEvaluation.h
> Author: reeves
> Mail: <EMAIL>
> Created Time: 16/07/2018 - 16:49
************************************************************************/
#ifndef EXPRESSIONEVALUATION_H_
#define EXPRESSIONEVALUATION... |
Mr-Solution/CPL | list/linkedlist.h | /*************************************************************************
> File Name: linkedlist.h
> Description: 链接表
> Author: reeves
> Mail: <EMAIL>
> Created Time: 2018年07月10日 星期二 16时04分36秒
************************************************************************/
#ifndef LINKEDLIST_H_
#define LINKEDLIST... |
Mr-Solution/CPL | evaluation/P3/expressionEvaluation.c | /*************************************************************************
> File Name: expressionEvaluation.c
> Author: libo
> Mail: <EMAIL>
> Created Time: 30/07/2018 - 18:54
************************************************************************/
#include "expressionEvaluation.h"
#include <ctype.... |
Mr-Solution/CPL | seqstack_new/seqstack.h | <<<<<<< HEAD
#include <string.h>
// typedef int Element;
typedef struct Stack{
size_t data_size;
void *data;
=======
typedef int Element;
typedef struct Stack{
Element *data;
>>>>>>> 2a749424c409a67c24a882ef72d453108ef1863c
int capacity; /* */
int top; /* index the top always have number */
}Stack;
#define IN... |
Mr-Solution/CPL | list/sqlist.c | /*************************************************************************
> File Name: sqlist.c
> Description: 线性表的顺序存储
> Author: reeves
> Mail: <EMAIL>
> Created Time: 2018年07月09日 星期一 10时55分48秒
************************************************************************/
#include <stdio.h>
#include <stdlib.h>
... |
Mr-Solution/CPL | exer1part1/main.c | <reponame>Mr-Solution/CPL
//
// main.c
// InfixToPostfixV1
//
// Created by williamzhuuestc on 2018/7/3.
// Copyright © 2018年 williamzhuuestc. All rights reserved.
//
#include "expressionEvaluation.h"
// #include "linkedstack.h"
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#define testNumbers 7
#de... |
Mr-Solution/CPL | stack/sqstack.h | /*************************************************************************
> File Name: sqstack.h
> Description: linear stack
> Author: libo
> Mail: <EMAIL>
> Created Time: 2018年07月09日 星期一 15时47分15秒
************************************************************************/
#ifndef SQSTACK_H_
#define SQSTACK_H... |
Mr-Solution/CPL | list/sqlist.h | /*************************************************************************
> File Name: sqlist.h
> Description: 线性表的顺序存储
> Author: reeves
> Mail: <EMAIL>
> Created Time: 2018年07月07日 星期六 21时40分40秒
************************************************************************/
#ifndef SQLIST_H_
#define SQLIST_H_
ty... |
Mr-Solution/CPL | evaluation/P2/expressionEvaluation.c | /*************************************************************************
> File Name: expressionEvaluation.h
> Author: reeves
> Mail: <EMAIL>
> Created Time: 16/07/2018 - 16:49
************************************************************************/
#include "expressionEvaluation.h"
#include "sequentialStack.... |
ChimeHQ/ContainedDocument | ContainedDocument/ContainedDocument.h | <reponame>ChimeHQ/ContainedDocument
//
// ContainedDocument.h
// ContainedDocument
//
// Created by <NAME> on 2021-02-16.
//
#import <Foundation/Foundation.h>
//! Project version number for ContainedDocument.
FOUNDATION_EXPORT double ContainedDocumentVersionNumber;
//! Project version string for ContainedDocument... |
MarioSomodi/VMSTI-Gradnja | VSMTI_Gradnja_d.o.o/Dokument.h | <filename>VSMTI_Gradnja_d.o.o/Dokument.h
#pragma once
#include <vector>
#include "Artikl.h"
#include "tinyxml2.h"
#include <iostream>
using namespace std;
class Dokument
{
public:
Dokument();
Dokument(string tD, string dD, double iU, double iI, int sOA);
~Dokument();
string VratiTip();
string VratiDatum();
doubl... |
MarioSomodi/VMSTI-Gradnja | VSMTI_Gradnja_d.o.o/Primka.h | <reponame>MarioSomodi/VMSTI-Gradnja
#pragma once
#include "Dokument.h"
class Primka :
public Dokument
{
public:
Primka(string tD, string dD, double iU, double iI, int sOA);
~Primka();
}; |
MarioSomodi/VMSTI-Gradnja | VSMTI_Gradnja_d.o.o/Artikl.h | <gh_stars>0
#pragma once
#include <vector>
#include <string>
using namespace std;
class Artikl
{
public:
Artikl(int sA, string nA, string JMJ, double cA);
~Artikl();
int VratiSifru();
string VratiNaziv();
string VratiJMJ();
double VratiCijenu();
private:
int m_nSifraArtikla;
string m_sNazivArtikla;
string m_... |
MarioSomodi/VMSTI-Gradnja | VSMTI_Gradnja_d.o.o/Izdatnica.h | <gh_stars>0
#pragma once
#include "Dokument.h"
class Izdatnica :
public Dokument
{
public:
Izdatnica(string tD, string dD, double iU, double iI, int sOA);
~Izdatnica();
};
|
MarioSomodi/VMSTI-Gradnja | VSMTI_Gradnja_d.o.o/Skladiste.h | <gh_stars>0
#pragma once
#include "Dokument.h"
#include <iostream>
#include <string>
#include "Izdatnica.h"
#include "Primka.h"
#include <vector>
#include <ctime>
#define NOMINMAX
#include <Windows.h>
#include <ctype.h>
#include <sstream>
#include "tinyxml2.h"
using namespace tinyxml2;
using namespace std;
class Skl... |
jamiejones85/ESP32-BMS | include/Shunt.h | #ifndef Shunt_H
#define Shunt_H
#include "BmsCan.h"
#include "Config.h"
typedef struct ShuntData {
signed long voltage1, voltage2, voltage3;
double amphours, kilowatthours, kilowatts;
int32_t milliamps;
};
class Shunt
{
public:
void resetCounters(BMS_CAN_MESSAGE &msg, BmsCan &bmscan, const EEPROMSet... |
jamiejones85/ESP32-BMS | include/OutlanderCharger.h | #ifndef OUTLANDER_CHARGER_H
#define OUTLANDER_CHARGER_H
#include <Arduino.h>
#include "BmsCan.h"
#include "Config.h"
#include "BMSModuleManager.h"
class OutlanderCharger {
public:
void processMessage(BMS_CAN_MESSAGE &inMsg);
void doCharge(const EEPROMSettings &settings, BMSModuleManager& bmsModuleManager, BM... |
jamiejones85/ESP32-BMS | include/BMSModuleManager.h | #ifndef BMS_MODULE_MANAGER_H
#define BMS_MODULE_MANAGER_H
#define CONTROLID 0x0BA;
#include "config.h"
#include "BMSModule.h"
#include "BMSCan.h"
#include "ArduinoJson.h"
class BMSModuleManager
{
public:
BMSModuleManager();
int seriescells();
void clearmodules();
void decodecan(BMS_CAN_MESSAGE &msg... |
jamiejones85/ESP32-BMS | include/BMSWebServer.h | <gh_stars>0
#ifndef BMS_WEB_SERVER_H
#define BMS_WEB_SERVER_H
#include "ESPAsyncWebServer.h"
#include "AsyncJson.h"
#include "ArduinoJson.h"
#include "Config.h"
#include "Bms.h"
class BMSWebServer
{
public:
void setup(EEPROMSettings &settings, Config &config, Bms &bms);
void execute();
void broadcast(con... |
jamiejones85/ESP32-BMS | include/Config.h | #ifndef CONFIG_H
#define CONFIG_H
#define MAX_MODULE_ADDR 0x3E
#define EEPROM_VERSION 0x03 //update any time EEPROM struct below is changed.
#include "ArduinoJson.h"
typedef struct EEPROMSettings {
int version;
//can settings
int carCanIndex;
int firstBatteryCanIndex;
int secondBatteryCanIndex;
... |
jamiejones85/ESP32-BMS | include/Bms.h | #ifndef BMS_H
#define BMS_H
#include <Arduino.h>
#include "BMSModuleManager.h"
#include "OutlanderCharger.h"
#include "Config.h"
#include "IO.h"
#include "ArduinoJson.h"
#include "Shunt.h"
#define Boot 0
#define Ready 1
#define Drive 2
#define Charge 3
#define Precharge 4
#define Error 5
class Bms {
public:
Bm... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.