CCBValue

CCBValue

大家好,又见面了,我是全栈君,今天给大家准备了Idea注册码。

#ifndef __CCB_VALUE_H__

#define __CCB_VALUE_H__


#include “cocos2d.h”

#include “ExtensionMacros.h”


/*

 These classes are wrapper of basic types, such as ccColor3B

 */


NS_CC_EXT_BEGIN


class ccColor3BWapper : public CCObject

{

private:

    ccColor3B color;

    

public:

    static ccColor3BWapper* create(const ccColor3B& color);

    

    const ccColor3B& getColor() const;

};


enum

{

    kIntValue,

    kFloatValue,

    kBoolValue,

    kUnsignedCharValue,

    kStringValue,

    kArrayValue

};


class CCBValue : public CCObject

{

private:

    union 

    {

        int nValue;

        float fValue;

    } mValue;

    

    std::string m_strValue;

    CCArray* m_arrValue;

    int mType;

    

public:

    static CCBValue* create(int nValue);

    static CCBValue* create(bool bValue);

    static CCBValue* create(float fValue);

    static CCBValue* create(unsigned char byte);

    static CCBValue* create(const char* pStr);

    static CCBValue* create(CCArray* pArr);


    

    int getIntValue();

    float getFloatValue();

    bool getBoolValue();

    unsigned char getByteValue();

    const char* getStringValue();

    CCArray *getArrayValue();

    

    int getType();

};


NS_CC_EXT_END


#endif // __CCB_VALUE_H__


版权声明:本文博客原创文章。博客,未经同意,不得转载。

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/117310.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • 数据时代大数据管理,主要有哪些策略?「建议收藏」

    数据时代大数据管理,主要有哪些策略?「建议收藏」1.对大数据时代的大数据管理框架进行创新在大数据时代的大数据管理形式不断发展过程中,给企业发展带来冲击非常巨大。因此,企业要根据我国信息技术不断发展的形式,对大数据管理框架进行全面的设计和创新,如图1所示。在大数据的处理的过程中,主要是围绕着数据资产进行管理的,同时对大数据时代的大数据管理制度,进行全面的规划行、设计、创新,这样对其它信息技术管理领域,提供了便利的条件。其实,大数据时代的大数据管…

    2022年6月10日
    27
  • 大型仓库进销存管理系统php源代码,多仓版进销存管理系统PHP源码ERP仓库管理系统php网络版进销存源码…

    大型仓库进销存管理系统php源代码,多仓版进销存管理系统PHP源码ERP仓库管理系统php网络版进销存源码…该系统为PHP语言开发开源无限制独家优化版,购货,销货,仓库管理,商品管理,供应商管理,职员管理等非常多的功能。该ERP部署安装非常简单,只要要空间支持PHP上传到根目录就可简单安装就可。运行速度和数据解决效率都非常高,非常适合中小企业仓库管理使用!本系统运行环境php5.4以下最好是5.2.17或者者5.3.3支持IIS、apache不支持nginx安装文档:1、上传到网站根目录2、用p…

    2022年5月31日
    53
  • ES6读书笔记(三)

    ES6读书笔记(三)

    2021年6月30日
    92
  • Python求解两数之和[通俗易懂]

    Python求解两数之和[通俗易懂]题目描述:写一个函数,此函数要实现以下功能:给一个列表,并且给一个目标数字,如果列表里的两个数字之和等于目标数字,返回那两个数字的索引值。比如,给定列表[3,5,7,14],目标数字是10,那么返回[0,2],0是3的索引,2是7的索引,3+7=10.注意,不可以重复利用列表中的某个数字,比如返回[1,1]是不能接受的。一、两层for循环遍历列表思路:先拿出列表里的第0个数…

    2022年5月5日
    35
  • Python字符串比较

    Python字符串比较InthistutorialwearegoingtoseedifferentmethodsbywhichwecancomparestringsinPython.Wewillalsoseesometrickycaseswhenthepythonstringcomparisoncanfailandgoldenrulestoget…

    2022年6月18日
    40
  • smartctl命令详解_smartmontools

    smartctl命令详解_smartmontools安装smartctlubuntu系统安装方法。root@gucloud:~#aptinstallsmartmontoolsReadingpackagelists…DoneBuildingdependencytreeReadingstateinformation…DoneSuggestedpackages:gsmartcontrolsmart-notifiermailx|mailutilsThefollowingNEWp

    2022年10月8日
    3

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号