åã¾ã§ãä¸è¨ã®ããã«ãã¦ã²ã¼ã ã製ä½ãã¦ããã§ããã ï½åºåºã¨ãªãã¯ã©ã¹ã®å®ç¾©ï½ãï¼ç´ç²ä»®æ³é¢æ°ãå®ç¾©ãï¼ class CCharaBase{ //ç¥ }; ï½åã¯ã©ã¹ãå®ç¾©ï½ class CPlayer : public CCharaBase{ //ç¥ }; class CEnemy : public CCharaBase{ //ç¥ }; ï½ã²ã¼ã ã®ã¡ã¤ã³ã®é¨åï½ void GameMain(){ m_Player->Move(); m_Enemy->Move(); m_Player->Draw(); m_Enemy->Draw(); } ã¨ã¦ãåºå®ãããããã°ã©ã ã«ãªã£ã¦ã¾ããã ï¼æç»ã®é çªå¤æ´ã§ããªãã ã¨ããããã¯ã©ã¹ãå¢ãããGameMainãã¨ã¦ãåé·ãªäºã«ãªããï¼ ãåé·ã«ãªã£ã¦ããä¾ã m_Player->Move(); m_Enemy->Move(); m_Boss->
{{#tags}}- {{label}}
{{/tags}}