florr小游戏

· · 科技·工程

#include<bits/stdc++.h>
#define int long long
using namespace std;

const int C_MobTempCnt=100;
const int C_SaveMapsCnt=100;
const int C_MapMobListCnt=100;
const int C_MapMaxCnt=100;
const int C_TpUpCnt=20;
const int C_SramCnt=55;
const int C_FlagCnt=1000;

struct FromMob{
    int x,y;
    int life,ai;
    int type,inmap;
    int temp[C_MobTempCnt];
    int from;//from who
};
struct Mob{
    int x,y;//info 
    int life,ai;//life,use ai
    int type,inmap;//type,where map
    int temp[C_MobTempCnt];//some temp 
    vector<FromMob>frommobs;
};
struct Flower{
    int type,lv;
    int in;//1-10 | bag
    bool inflorr;
};
struct Floer{
    int x,y;//info
    int life,id;

    int lv,tp;//tp
    int tpup[C_TpUpCnt];
    //1:see

    int bagcnt;//bag
    vector<Flower>bagcnts;
}; 
struct GoRoom{
    int x,y;
    int to;
};
struct Map{
    int id;
    Mob moblist[C_MapMobListCnt];
    int savemaps[C_MapMaxCnt][C_MapMaxCnt];
    vector<Flower>flowerinmap;
    vector<GoRoom>roomlist;
    string FTOC;
};

vector<Floer>FloerList; 
vector<Map>MapList;

int sram[C_SramCnt][C_SramCnt];
int FlagList[C_FlagCnt];

int rant(int l,int r){
    random_device rd;
    mt19937_64 myrand(rd());
    return (myrand())%(r-l)+l;
}

void initmap(){
    //noob shit code
    //long long long long long long long long long long code
}

void draw_1(int floerid){
    Floer flt=FloerList[floerid];   
    int t1=C_SramCnt/2; 
    int cansee=flt.tpup[1]*5;
    for (int x=flt.x-cansee,sramx=1;x<=flt.x+cansee;++x,++sramx){
        for (int y=flt.y-cansee,sramy=1;y<=flt.y+cansee;++y,++sramy){
            sram[sramx][sramy]=MapList[flt.id].savemaps[x][y];
        }
    }
    return;
}
void mobdo(){
    for (int i=0;i<MapList.size();++i){
        Map mapt=MapList[i];
        for (int j=0;j<moblist.size();++j){
            Mob mobt=MapList[i].moblist[j];

        }
    }
}


signed main(){

}