⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 squirmcellproperties.h

📁 本程序模拟细胞的自我繁殖
💻 H
字号:
// SquirmCellProperties.h

#pragma once

enum TStyle { NEUTRAL,HYDROPHOBIC,HYDROPHILIC,WATER };

class SquirmCellProperties
{
public:

	TStyle style;

    SquirmCellProperties(char t,int s);

    char GetType() { return this->type; } 
    int GetState() { return this->state; }

    void SetState(int s) { 
		this->state=s; 
		RecomputeStyle();
	}

    void SetType(char t)
    {
        this->type = t;
        RecomputeStyle();
    }

    COLORREF GetColour();

    static char GetRandomType();

    static void EIGHT(int i,int &x,int &y);
    static void FOUR(int i,int &x,int &y);

protected:

    char type;
    int state;

	void RecomputeStyle();
};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -