see previous

master
ieee 802.11ac 2 years ago
parent c0b5991ddd
commit 01cef9ed92

@ -0,0 +1,9 @@
#ifndef BUILDING_H
#define BUILDING_H
class Building {
private:
int width, height;
public:
};
#endif

@ -0,0 +1,11 @@
#ifndef CAMERA_H
#define CAMERA_H
class Camera {
private:
int sizeX, sizeY;
int posX, posY;
public:
};
#endif

@ -1,3 +1,6 @@
/*
behold! my garbage code. (and other people's better code but whatever)
*/
#include <iostream>
#include <sys/ioctl.h>
#include <string.h>
@ -11,16 +14,16 @@ int main(int argc, char **argv)
std::cout << w.ws_row << " lines\n";
std::cout << w.ws_col << " columns\n";
std::cout << argc << " arguments" << std::endl;
if (argc==1) {
std::cout << "no arguments :(" << std::endl;
} else {
for (int i = 1; i < argc; i++) {
std::cout << argc-1 << " arguments" << std::endl;
char *arg = argv[i];
if (!strcmp(arg, "--help")) {
std::cout << "this is a factorio clone that runs in the terminal. it is shit." << std::endl;
std::cout << "syntax: " << filename << " [arguments] <*.json>" << std::endl;
std::cout << "this is a factorio clone that runs in the terminal. it is shit. shoutouts to dragon lord for thinking up the name \"beaurocra-tech\"" << std::endl;
std::cout << "syntax: " << filename << " [arguments] <*.json>" << std::endl; // why json? because 1. it's convenient and 2. i'm too lazy to make a blotterv5 parser
}
}

Loading…
Cancel
Save