{"id":525,"date":"2026-06-07T16:16:12","date_gmt":"2026-06-07T07:16:12","guid":{"rendered":"https:\/\/software.satoshis.jp\/?p=525"},"modified":"2026-06-07T16:16:59","modified_gmt":"2026-06-07T07:16:59","slug":"java%e3%81%ae%e3%82%aa%e3%83%96%e3%82%b8%e3%82%a7%e3%82%af%e3%83%88%e6%8c%87%e5%90%91%e3%81%a8%e3%81%af%ef%bc%9frpg%e3%82%92%e4%bd%9c%e3%82%8b%e5%89%8d%e3%81%ab%e7%9f%a5%e3%81%a3%e3%81%a6%e3%81%8a","status":"publish","type":"post","link":"https:\/\/software.satoshis.jp\/?p=525","title":{"rendered":"Java\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u3068\u306f\uff1fRPG\u3092\u4f5c\u308b\u524d\u306b\u77e5\u3063\u3066\u304a\u304d\u305f\u3044\u30af\u30e9\u30b9\u3068\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u8003\u3048\u65b9"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/software.satoshis.jp\/wp-content\/uploads\/2026\/06\/rpg-java-1-300x200.png\" alt=\"\" width=\"300\" height=\"200\" class=\"alignnone size-medium wp-image-528\" srcset=\"https:\/\/software.satoshis.jp\/wp-content\/uploads\/2026\/06\/rpg-java-1-300x200.png 300w, https:\/\/software.satoshis.jp\/wp-content\/uploads\/2026\/06\/rpg-java-1-1024x683.png 1024w, https:\/\/software.satoshis.jp\/wp-content\/uploads\/2026\/06\/rpg-java-1-768x512.png 768w, https:\/\/software.satoshis.jp\/wp-content\/uploads\/2026\/06\/rpg-java-1.png 1536w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>Java\u3092\u5b66\u3073\u59cb\u3081\u308b\u3068\u3001\u304b\u306a\u308a\u65e9\u3044\u6bb5\u968e\u3067\u300c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u300d\u3068\u3044\u3046\u8a00\u8449\u304c\u51fa\u3066\u304d\u307e\u3059\u3002<\/p>\n<p>\u306a\u305c\u306a\u3089\u3001Java\u81ea\u4f53\u304c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u8a00\u8a9e\u3060\u304b\u3089\u3067\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u521d\u5fc3\u8005\u306b\u3068\u3063\u3066\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u306f\u5206\u304b\u308a\u306b\u304f\u3044\u8003\u3048\u65b9\u3067\u3059\u3002<\/p>\n<p>\u30af\u30e9\u30b9\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3001\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3001\u30d5\u30a3\u30fc\u30eb\u30c9\u3001\u30e1\u30bd\u30c3\u30c9\u3001\u30ab\u30d7\u30bb\u30eb\u5316\u3001\u7d99\u627f\u3001\u30dd\u30ea\u30e2\u30fc\u30d5\u30a3\u30ba\u30e0\u3002<\/p>\n<p>\u3044\u304d\u306a\u308a\u77e5\u3089\u306a\u3044\u8a00\u8449\u304c\u305f\u304f\u3055\u3093\u51fa\u3066\u304f\u308b\u306e\u3067\u3001\u300c\u7d50\u5c40\u3001\u4f55\u306e\u305f\u3081\u306b\u3042\u308b\u306e\u304b\u5206\u304b\u3089\u306a\u3044\u300d\u3068\u611f\u3058\u308b\u4eba\u3082\u591a\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001RPG\u3092\u984c\u6750\u306b\u3057\u3066\u3001Java\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<p>RPG\u306b\u306f\u3001\u52c7\u8005\u3001\u30b9\u30e9\u30a4\u30e0\u3001\u6b66\u5668\u3001\u30a2\u30a4\u30c6\u30e0\u3001\u9b54\u6cd5\u306a\u3069\u304c\u767b\u5834\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3089\u3092\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4e2d\u3067\u3069\u306e\u3088\u3046\u306b\u8868\u73fe\u3059\u308b\u306e\u304b\u3092\u8003\u3048\u308b\u3068\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u306e\u8003\u3048\u65b9\u304c\u5c11\u3057\u7406\u89e3\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>Java\u521d\u5fc3\u8005\u304c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u3067\u3064\u307e\u305a\u304d\u3084\u3059\u3044\u7406\u7531<\/h3>\n<p>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u304c\u5206\u304b\u308a\u306b\u304f\u3044\u7406\u7531\u306e\u3072\u3068\u3064\u306f\u3001\u6700\u521d\u304b\u3089\u62bd\u8c61\u7684\u306a\u8aac\u660e\u304c\u591a\u3044\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u3088\u3046\u306b\u8aac\u660e\u3055\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<blockquote><p>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u3068\u306f\u3001\u30c7\u30fc\u30bf\u3068\u51e6\u7406\u3092\u3072\u3068\u307e\u3068\u3081\u306b\u3057\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4e2d\u5fc3\u306b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u8a2d\u8a08\u3059\u308b\u8003\u3048\u65b9\u3067\u3059\u3002<\/p><\/blockquote>\n<p>\u3053\u308c\u306f\u8aac\u660e\u3068\u3057\u3066\u306f\u6b63\u3057\u3044\u3067\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001Java\u3092\u5b66\u3073\u59cb\u3081\u305f\u3070\u304b\u308a\u306e\u4eba\u306b\u3068\u3063\u3066\u306f\u3001\u3053\u308c\u3060\u3051\u3067\u306f\u306a\u304b\u306a\u304b\u30a4\u30e1\u30fc\u30b8\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>\u300c\u30c7\u30fc\u30bf\u3068\u51e6\u7406\u3092\u3072\u3068\u307e\u3068\u3081\u306b\u3059\u308b\u300d\u3068\u8a00\u308f\u308c\u3066\u3082\u3001\u305d\u308c\u304c\u5177\u4f53\u7684\u306b\u4f55\u3092\u610f\u5473\u3059\u308b\u306e\u304b\u5206\u304b\u308a\u306b\u304f\u3044\u304b\u3089\u3067\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001\u307e\u305a\u306fRPG\u3067\u8003\u3048\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>RPG\u306b\u306f\u3001\u52c7\u8005\u304c\u3044\u307e\u3059\u3002<br \/>\n\u52c7\u8005\u306b\u306f\u540d\u524d\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\nHP\u3082\u3042\u308a\u307e\u3059\u3002<br \/>\n\u653b\u6483\u529b\u3082\u3042\u308a\u307e\u3059\u3002<br \/>\n\u305d\u3057\u3066\u3001\u653b\u6483\u3057\u305f\u308a\u3001\u56de\u5fa9\u3057\u305f\u308a\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3064\u307e\u308a\u52c7\u8005\u306b\u306f\u3001<\/p>\n<ul>\n<li>\u540d\u524d<\/li>\n<li>HP<\/li>\n<li>\u653b\u6483\u529b<\/li>\n<\/ul>\n<p>\u3068\u3044\u3063\u305f\u300c\u60c5\u5831\u300d\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001<\/p>\n<ul>\n<li>\u653b\u6483\u3059\u308b<\/li>\n<li>\u56de\u5fa9\u3059\u308b<\/li>\n<li>\u30a2\u30a4\u30c6\u30e0\u3092\u4f7f\u3046<\/li>\n<\/ul>\n<p>\u3068\u3044\u3063\u305f\u300c\u52d5\u304d\u300d\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u3067\u306f\u3001\u3053\u306e\u3088\u3046\u306a\u300c\u60c5\u5831\u300d\u3068\u300c\u52d5\u304d\uff08\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u3067\u306f\u300e\u632f\u308b\u821e\u3044\u300f\u3068\u547c\u3073\u307e\u3059\uff09\u300d\u3092\u3072\u3068\u307e\u3068\u3081\u306b\u3057\u3066\u8003\u3048\u307e\u3059\u3002<\/p>\n<h3>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u306e\u8003\u3048\u65b9\u306e\u57fa\u672c\u306f\u300c\u3082\u306e\u300d\u306b\u5f79\u5272\u3092\u6301\u305f\u305b\u308b\u3053\u3068<\/h3>\n<p>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u3068\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4e2d\u306b\u300c\u3082\u306e\u300d\u3084\u300c\u5f79\u5272\u300d\u3092\u4f5c\u308a\u3001\u305d\u308c\u305e\u308c\u306b\u30c7\u30fc\u30bf\u3068\u51e6\u7406\u3092\u6301\u305f\u305b\u308b\u8003\u3048\u65b9\u3067\u3059\u3002<\/p>\n<p>RPG\u3067\u8003\u3048\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306a\u3082\u306e\u304c\u767b\u5834\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u52c7\u8005<\/li>\n<li>\u30b9\u30e9\u30a4\u30e0<\/li>\n<li>\u6b66\u5668<\/li>\n<li>\u9632\u5177<\/li>\n<li>\u85ac\u8349<\/li>\n<li>\u9b54\u6cd5<\/li>\n<li>\u30c0\u30f3\u30b8\u30e7\u30f3<\/li>\n<li>\u6226\u95d8<\/li>\n<\/ul>\n<p>\u3053\u308c\u3089\u3092\u3059\u3079\u3066\u5f93\u6765\u306e\u65b9\u6cd5\u3067\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u308d\u3046\u3068\u3059\u308b\u3068\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u3042\u3063\u3068\u3044\u3046\u9593\u306b\u8907\u96d1\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070\u3001\u52c7\u8005\u306eHP\u3001\u30b9\u30e9\u30a4\u30e0\u306eHP\u3001\u653b\u6483\u51e6\u7406\u3001\u56de\u5fa9\u51e6\u7406\u3001\u30a2\u30a4\u30c6\u30e0\u51e6\u7406\u306a\u3069\u3092\u5168\u90e8\u3072\u3068\u3064\u306e\u5834\u6240\u306b\u66f8\u304f\u3068\u3001\u3069\u3053\u306b\u4f55\u304c\u66f8\u3044\u3066\u3042\u308b\u306e\u304b\u5206\u304b\u308a\u306b\u304f\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u3067\u306f\u5f79\u5272\u3054\u3068\u306b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5206\u3051\u307e\u3059\u3002<\/p>\n<p>Java\u3067\u306f\u3001\u305d\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u5358\u4f4d\u3092\u30af\u30e9\u30b9\u3068\u547c\u3073\u307e\u3059\u3002<\/p>\n<p>\u52c7\u8005\u306b\u95a2\u3059\u308b\u60c5\u5831\u3084\u51e6\u7406\u306f\u3001\u52c7\u8005\u306e\u30af\u30e9\u30b9\u306b\u307e\u3068\u3081\u308b\u3002<br \/>\n\u30b9\u30e9\u30a4\u30e0\u306b\u95a2\u3059\u308b\u60c5\u5831\u3084\u51e6\u7406\u306f\u3001\u30b9\u30e9\u30a4\u30e0\u306e\u30af\u30e9\u30b9\u306b\u307e\u3068\u3081\u308b\u3002<br \/>\n\u6b66\u5668\u306b\u95a2\u3059\u308b\u60c5\u5831\u3084\u51e6\u7406\u306f\u3001\u6b66\u5668\u306e\u30af\u30e9\u30b9\u306b\u307e\u3068\u3081\u308b\u3002<\/p>\n<p>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u3068\u306f\u3001\u3053\u306e\u3088\u3046\u306b\u30d7\u30ed\u30b0\u30e9\u30e0\uff08\u30af\u30e9\u30b9\uff09\u3092\u300c\u5f79\u5272\u3092\u6301\u3063\u305f\u90e8\u54c1\u300d\u306b\u5206\u3051\u3066\u8003\u3048\u308b\u3053\u3068\u3067\u3001\u4eba\u9593\u304c\u7406\u89e3\u3057\u3084\u3059\u3044\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u308b\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n<h3>RPG\u3067\u8003\u3048\u308b\u3068\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u306f\u7406\u89e3\u3057\u3084\u3059\u3044<\/h3>\n<p>\u305f\u3068\u3048\u3070\u3001RPG\u306e\u52c7\u8005\u3092\u8003\u3048\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\u52c7\u8005\u306b\u306f\u3001\u6b21\u306e\u3088\u3046\u306a\u60c5\u5831\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u540d\u524d<\/li>\n<li>HP<\/li>\n<li>MP<\/li>\n<li>\u653b\u6483\u529b<\/li>\n<li>\u30ec\u30d9\u30eb<\/li>\n<\/ul>\n<p>\u307e\u305f\u3001\u52c7\u8005\u306b\u306f\u6b21\u306e\u3088\u3046\u306a\u52d5\u304d\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u653b\u6483\u3059\u308b<\/li>\n<li>\u9632\u5fa1\u3059\u308b<\/li>\n<li>\u56de\u5fa9\u3059\u308b<\/li>\n<li>\u9b54\u6cd5\u3092\u4f7f\u3046<\/li>\n<li>\u30a2\u30a4\u30c6\u30e0\u3092\u4f7f\u3046<\/li>\n<\/ul>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001\u300c\u52c7\u8005\u300d\u3068\u3044\u3046\u3082\u306e\u3092\u8003\u3048\u308b\u3068\u304d\u3001\u60c5\u5831\u3068\u52d5\u304d\u306f\u30bb\u30c3\u30c8\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30b9\u30e9\u30a4\u30e0\u3082\u540c\u3058\u3067\u3059\u3002<\/p>\n<p>\u30b9\u30e9\u30a4\u30e0\u306b\u306f\u3001\u6b21\u306e\u3088\u3046\u306a\u60c5\u5831\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u540d\u524d<\/li>\n<li>HP<\/li>\n<li>\u653b\u6483\u529b<\/li>\n<\/ul>\n<p>\u305d\u3057\u3066\u3001\u6b21\u306e\u3088\u3046\u306a\u52d5\u304d\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u653b\u6483\u3059\u308b<\/li>\n<li>\u9003\u3052\u308b<\/li>\n<\/ul>\n<p>\u85ac\u8349\u306a\u3089\u3069\u3046\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u85ac\u8349\u306b\u306f\u3001<\/p>\n<ul>\n<li>\u540d\u524d<\/li>\n<li>\u56de\u5fa9\u91cf<\/li>\n<\/ul>\n<p>\u3068\u3044\u3046\u60c5\u5831\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001<\/p>\n<ul>\n<li>\u4f7f\u3046\u3068HP\u3092\u56de\u5fa9\u3059\u308b<\/li>\n<\/ul>\n<p>\u3068\u3044\u3046\u52d5\u304d\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001RPG\u306e\u767b\u5834\u4eba\u7269\u3084\u30a2\u30a4\u30c6\u30e0\u3092\u300c\u60c5\u5831\u300d\u3068\u300c\u52d5\u304d\u300d\u306e\u30bb\u30c3\u30c8\u3068\u3057\u3066\u8003\u3048\u308b\u3068\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u306e\u30a4\u30e1\u30fc\u30b8\u304c\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>\u30af\u30e9\u30b9\u3068\u306f\u300c\u8a2d\u8a08\u56f3\u300d\u306e\u3088\u3046\u306a\u3082\u306e<\/h3>\n<p>Java\u3067\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u3092\u4f7f\u3046\u3068\u304d\u3001\u307e\u305a\u91cd\u8981\u306b\u306a\u308b\u306e\u304c\u300c\u30af\u30e9\u30b9\u300d\u3067\u3059\u3002<\/p>\n<p>\u30af\u30e9\u30b9\u3068\u306f\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u308b\u305f\u3081\u306e\u8a2d\u8a08\u56f3\u306e\u3088\u3046\u306a\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070\u3001\u52c7\u8005\u3092\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u8868\u3059\u306a\u3089\u3001Hero \u30af\u30e9\u30b9\u3092\u4f5c\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\npublic class Hero {\r\n    String name;\r\n    int hp;\r\n\r\n    public void attack() {\r\n        System.out.println(name + &quot;\u306e\u653b\u6483\uff01&quot;);\r\n    }\r\n}\r\n<\/pre>\n<p>\u3053\u306e Hero \u30af\u30e9\u30b9\u306b\u306f\u3001\u52c7\u8005\u304c\u6301\u3064\u60c5\u5831\u3068\u52d5\u304d\u3092\u66f8\u3044\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\nString name;\r\nint hp;\r\n<\/pre>\n<p>\u3053\u308c\u306f\u3001\u52c7\u8005\u304c\u6301\u3064\u60c5\u5831\u3067\u3059\u3002<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\npublic void attack() {\r\n    System.out.println(name + &quot;\u306e\u653b\u6483\uff01&quot;);\r\n}\r\n<\/pre>\n<p>\u3053\u308c\u306f\u3001\u52c7\u8005\u306e\u52d5\u304d\u3067\u3059\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001Hero \u30af\u30e9\u30b9\u306f\u300c\u52c7\u8005\u3068\u306f\u3069\u3046\u3044\u3046\u3082\u306e\u304b\u300d\u3092\u5b9a\u7fa9\u3057\u3066\u3044\u308b\u8a2d\u8a08\u56f3\u3067\u3059\u3002<\/p>\n<p>\u305f\u3060\u3057\u3001\u3053\u306e\u6642\u70b9\u3067\u306f\u307e\u3060\u5b9f\u969b\u306e\u52c7\u8005\u304c\u4f5c\u3089\u308c\u305f\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u30af\u30e9\u30b9\u306f\u3042\u304f\u307e\u3067\u8a2d\u8a08\u56f3\u3067\u3059\u3002<\/p>\n<h3>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068\u306f\u30af\u30e9\u30b9\u304b\u3089\u4f5c\u3089\u308c\u305f\u5b9f\u4f53<\/h3>\n<p>\u30af\u30e9\u30b9\u304c\u8a2d\u8a08\u56f3\u3060\u3068\u3059\u308c\u3070\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u305d\u306e\u8a2d\u8a08\u56f3\u304b\u3089\u4f5c\u3089\u308c\u305f\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>Java\u3067\u306f\u3001new \u3092\u4f7f\u3063\u3066\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\nHero hero = new Hero();\r\n<\/pre>\n<p>\u3053\u308c\u3067\u3001Hero \u30af\u30e9\u30b9\u3092\u3082\u3068\u306b\u3057\u305f\u52c7\u8005\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u4f5c\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u5f8c\u3001\u52c7\u8005\u306e\u540d\u524d\u3084HP\u3092\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\nHero hero = new Hero(); \r\nhero.name = &quot;\u52c7\u8005&quot;; \r\nhero.hp = 100;\r\n\r\nhero.attack();\r\n<\/pre>\n<p>\u3053\u3053\u3067\u5927\u4e8b\u306a\u306e\u306f\u3001Hero \u30af\u30e9\u30b9\u3068 hero \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u540c\u3058\u3082\u306e\u3067\u306f\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>Hero \u30af\u30e9\u30b9\u306f\u8a2d\u8a08\u56f3\u3067\u3059\u3002<br \/>\nhero \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u3001\u305d\u306e\u8a2d\u8a08\u56f3\u304b\u3089\u4f5c\u3089\u308c\u305f\u5b9f\u7269\u3067\u3059\u3002<\/p>\n<p>\u305f\u3068\u3048\u308b\u306a\u3089\u3001\u305f\u3044\u713c\u304d\u306e\u578b\u3068\u305f\u3044\u713c\u304d\u306e\u95a2\u4fc2\u306b\u8fd1\u3044\u3067\u3059\u3002<\/p>\n<p>\u578b\u305d\u306e\u3082\u306e\u306f\u98df\u3079\u3089\u308c\u307e\u305b\u3093\u3002<br \/>\n\u3067\u3082\u3001\u578b\u3092\u4f7f\u3048\u3070\u305f\u3044\u713c\u304d\u3092\u4f55\u500b\u3082\u4f5c\u308c\u307e\u3059\u3002<\/p>\n<p>\u540c\u3058\u3088\u3046\u306b\u3001Hero \u30af\u30e9\u30b9\u305d\u306e\u3082\u306e\u306f\u8a2d\u8a08\u56f3\u3067\u3059\u304c\u3001\u305d\u3053\u304b\u3089\u52c7\u8005\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3068\u306f\u4f55\u304b<\/h3>\n<p>Java\u3067\u306f\u3001\u30af\u30e9\u30b9\u304b\u3089\u4f5c\u3089\u308c\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u3053\u3068\u3092\u300c\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u300d\u3068\u547c\u3076\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u53b3\u5bc6\u306b\u306f\u4f7f\u3044\u5206\u3051\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u521d\u5fc3\u8005\u306e\u3046\u3061\u306f\u3001<\/p>\n<p>\u30af\u30e9\u30b9\u304b\u3089 new \u3067\u4f5c\u3089\u308c\u305f\u3082\u306e\u304c\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9<\/p>\n<p>\u3068\u8003\u3048\u3066\u304a\u3051\u3070\u3088\u3044\u3067\u3059\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u3088\u3046\u306b\u66f8\u304f\u3068\u3001\u52c7\u8005\u30922\u4eba\u4f5c\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\nHero hero1 = new Hero(); \r\nhero1.name = &quot;\u52c7\u8005&quot;; \r\nhero1.hp = 100; \r\n\r\nHero hero2 = new Hero(); \r\nhero2.name = &quot;\u6226\u58eb&quot;; \r\nhero2.hp = 150;\r\n<\/pre>\n<p>hero1 \u3068 hero2 \u306f\u3001\u3069\u3061\u3089\u3082 Hero \u30af\u30e9\u30b9\u304b\u3089\u4f5c\u3089\u308c\u305f\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3067\u3059\u3002<\/p>\n<p>\u540c\u3058 Hero \u30af\u30e9\u30b9\u304b\u3089\u4f5c\u3089\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u305d\u308c\u305e\u308c\u5225\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u3059\u3002<\/p>\n<p>hero1 \u306e\u540d\u524d\u306f\u300c\u52c7\u8005\u300d\u3001hero2 \u306e\u540d\u524d\u306f\u300c\u6226\u58eb\u300d\u3067\u3059\u3002<br \/>\nHP\u3082\u5225\u3005\u306b\u6301\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001\u30af\u30e9\u30b9\u3092\u4f7f\u3046\u3068\u3001\u540c\u3058\u7a2e\u985e\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f55\u500b\u3082\u4f5c\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u30d5\u30a3\u30fc\u30eb\u30c9\u306f\u72b6\u614b\u3001\u30e1\u30bd\u30c3\u30c9\u306f\u52d5\u4f5c<\/h3>\n<p>\u30af\u30e9\u30b9\u306e\u4e2d\u306b\u306f\u3001\u30d5\u30a3\u30fc\u30eb\u30c9\u3068\u30e1\u30bd\u30c3\u30c9\u3092\u66f8\u304d\u307e\u3059\u3002<\/p>\n<p>\u30d5\u30a3\u30fc\u30eb\u30c9\u3068\u306f\u3001\u305d\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u6301\u3064\u60c5\u5831\u3067\u3059\u3002<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\nString name;\r\nint hp;\r\n<\/pre>\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001name \u3068 hp \u304c\u30d5\u30a3\u30fc\u30eb\u30c9\u3067\u3059\u3002<\/p>\n<p>\u52c7\u8005\u306e\u540d\u524d\u3084HP\u306f\u3001\u52c7\u8005\u306e\u72b6\u614b\u3092\u8868\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4e00\u65b9\u3001\u30e1\u30bd\u30c3\u30c9\u3068\u306f\u3001\u305d\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u3067\u304d\u308b\u52d5\u4f5c\u3067\u3059\u3002<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\npublic void attack() {\r\n    System.out.println(name + &quot;\u306e\u653b\u6483\uff01&quot;);\r\n}\r\n<\/pre>\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001attack() \u304c\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u3002<\/p>\n<p>\u52c7\u8005\u304c\u653b\u6483\u3059\u308b\u3068\u3044\u3046\u52d5\u304d\u3092\u8868\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u306b\u3059\u308b\u3068\u4f55\u304c\u3046\u308c\u3057\u3044\u306e\u304b<\/h3>\n<p>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u306b\u3059\u308b\u3068\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u90e8\u54c1\u3054\u3068\u306b\u5206\u3051\u3066\u8003\u3048\u3089\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u306b\u306f\u3044\u304f\u3064\u304b\u306e\u30e1\u30ea\u30c3\u30c8\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u8aad\u307f\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u52c7\u8005\u306b\u95a2\u3059\u308b\u51e6\u7406\u306f Hero \u30af\u30e9\u30b9\u3092\u898b\u308c\u3070\u3088\u3044\u3002<br \/>\n\u30b9\u30e9\u30a4\u30e0\u306b\u95a2\u3059\u308b\u51e6\u7406\u306f Slime \u30af\u30e9\u30b9\u3092\u898b\u308c\u3070\u3088\u3044\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u5206\u304b\u308c\u3066\u3044\u308b\u3068\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u5168\u4f53\u3092\u4e00\u5ea6\u306b\u7406\u89e3\u3057\u306a\u304f\u3066\u3082\u3001\u5fc5\u8981\u306a\u90e8\u5206\u304b\u3089\u8aad\u3081\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306b\u3001\u4fee\u6b63\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070\u3001\u52c7\u8005\u306e\u653b\u6483\u51e6\u7406\u3092\u5909\u66f4\u3057\u305f\u3044\u5834\u5408\u3001Hero \u30af\u30e9\u30b9\u3092\u898b\u308c\u3070\u3088\u3044\u3068\u5206\u304b\u308a\u307e\u3059\u3002<\/p>\n<h3>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u540c\u58eb\u304c\u5354\u529b\u3057\u3066\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u52d5\u304f<\/h3>\n<p>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u3067\u4f5c\u3089\u308c\u305f\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u3001\u8907\u6570\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u5354\u529b\u3057\u3066\u52d5\u304d\u307e\u3059\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070\u3001\u52c7\u8005\u304c\u85ac\u8349\u3092\u4f7f\u3046\u5834\u9762\u3092\u8003\u3048\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\u52c7\u8005\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u85ac\u8349\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u52c7\u8005\u304c\u85ac\u8349\u3092\u4f7f\u3046\u3068\u3001\u85ac\u8349\u306e\u56de\u5fa9\u91cf\u306b\u5fdc\u3058\u3066\u52c7\u8005\u306eHP\u304c\u56de\u5fa9\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u3068\u304d\u3001<\/p>\n<p>\u52c7\u8005\u306f\u81ea\u5206\u306eHP\u3092\u6301\u3063\u3066\u3044\u308b<br \/>\n\u85ac\u8349\u306f\u56de\u5fa9\u91cf\u3092\u6301\u3063\u3066\u3044\u308b<br \/>\n\u85ac\u8349\u3092\u4f7f\u3046\u3053\u3068\u3067\u52c7\u8005\u306eHP\u304c\u5897\u3048\u308b<\/p>\n<p>\u3068\u3044\u3046\u3088\u3046\u306b\u3001\u8907\u6570\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u95a2\u4fc2\u3057\u306a\u304c\u3089\u51e6\u7406\u304c\u9032\u307f\u307e\u3059\u3002<\/p>\n<p>RPG\u306e\u6226\u95d8\u3082\u540c\u3058\u3067\u3059\u3002<\/p>\n<p>\u52c7\u8005\u304c\u30b9\u30e9\u30a4\u30e0\u3092\u653b\u6483\u3059\u308b\u3002<br \/>\n\u30b9\u30e9\u30a4\u30e0\u306eHP\u304c\u6e1b\u308b\u3002<br \/>\n\u30b9\u30e9\u30a4\u30e0\u304c\u52c7\u8005\u3092\u653b\u6483\u3059\u308b\u3002<br \/>\n\u52c7\u8005\u306eHP\u304c\u6e1b\u308b\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u540c\u58eb\u304c\u3084\u308a\u3068\u308a\u3057\u306a\u304c\u3089\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u52d5\u3044\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h3>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u3067\u3088\u304f\u51fa\u3066\u304f\u308b4\u3064\u306e\u8003\u3048\u65b9<\/h3>\n<p>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u306b\u306f\u3001\u3088\u304f\u51fa\u3066\u304f\u308b\u91cd\u8981\u306a\u8003\u3048\u65b9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u4ee3\u8868\u7684\u306a\u3082\u306e\u306f\u6b21\u306e4\u3064\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u30ab\u30d7\u30bb\u30eb\u5316<\/li>\n<li>\u7d99\u627f<\/li>\n<li>\u30dd\u30ea\u30e2\u30fc\u30d5\u30a3\u30ba\u30e0<\/li>\n<li>\u62bd\u8c61\u5316<\/li>\n<\/ul>\n<p>\u6700\u521d\u304b\u3089\u3059\u3079\u3066\u3092\u5b8c\u74a7\u306b\u7406\u89e3\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u3053\u3053\u3067\u306f\u3001RPG\u3092\u4f8b\u306b\u3057\u3066\u7c21\u5358\u306b\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h4>\u30ab\u30d7\u30bb\u30eb\u5316\u3068\u306f<\/h4>\n<p>\u30ab\u30d7\u30bb\u30eb\u5316\u3068\u306f\u3001\u30c7\u30fc\u30bf\u3068\u51e6\u7406\u3092\u3072\u3068\u307e\u3068\u3081\u306b\u3057\u3001\u5916\u304b\u3089\u52dd\u624b\u306b\u4e2d\u8eab\u3092\u5909\u66f4\u3055\u308c\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u8003\u3048\u65b9\u3067\u3059\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070\u3001\u52c7\u8005\u306eHP\u3092\u3069\u3053\u304b\u3089\u3067\u3082\u81ea\u7531\u306b\u66f8\u304d\u63db\u3048\u3089\u308c\u308b\u3068\u56f0\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\nhero.hp = 0;\r\n<\/pre>\n<p>\u52c7\u8005\u304c\u3044\u304d\u306a\u308a\u6b7b\u3093\u3067\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001\u5b9f\u969b\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u306f\u3001HP\u3092\u76f4\u63a5\u5909\u66f4\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u30c0\u30e1\u30fc\u30b8\u3092\u53d7\u3051\u308b\u30e1\u30bd\u30c3\u30c9\u3084\u56de\u5fa9\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u3092\u7528\u610f\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\npublic void damage(int point) { \r\n    hp -= point; \r\n    if (hp &lt; 0) { \r\n        hp = 0; \r\n    } \r\n}\r\n<\/pre>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u72b6\u614b\u3092\u5b89\u5168\u306b\u5909\u66f4\u3059\u308b\u305f\u3081\u306e\u5165\u308a\u53e3\u3092\u7528\u610f\u3059\u308b\u306e\u304c\u30ab\u30d7\u30bb\u30eb\u5316\u306e\u8003\u3048\u65b9\u3067\u3059\u3002<\/p>\n<p>\u521d\u5fc3\u8005\u306e\u3046\u3061\u306f\u3001\u300c\u30c7\u30fc\u30bf\u3092\u5916\u90e8\u304b\u3089\u76f4\u63a5\u5909\u66f4\u3067\u304d\u306a\u3044\u3088\u3046\u306b\u3057\u3066\u3001\u30e1\u30bd\u30c3\u30c9\u3092\u901a\u3057\u3066\u64cd\u4f5c\u3059\u308b\u300d\u304f\u3089\u3044\u306b\u8003\u3048\u308b\u3068\u3088\u3044\u3067\u3059\u3002<\/p>\n<h4>\u7d99\u627f\u3068\u306f<\/h4>\n<p>\u7d99\u627f\u3068\u306f\u3001\u5171\u901a\u3059\u308b\u6027\u8cea\u3092\u89aa\u30af\u30e9\u30b9\u306b\u307e\u3068\u3081\u3001\u5b50\u30af\u30e9\u30b9\u3067\u305d\u308c\u3092\u53d7\u3051\u7d99\u3050\u4ed5\u7d44\u307f\u3067\u3059\u3002<\/p>\n<p>RPG\u3067\u306f\u3001\u52c7\u8005\u3082\u30b9\u30e9\u30a4\u30e0\u3082\u5171\u901a\u3057\u3066\u300c\u540d\u524d\u300d\u3084\u300cHP\u300d\u3084\u300c\u653b\u6483\u529b\u300d\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001\u5171\u901a\u90e8\u5206\u3092 Chara \u30af\u30e9\u30b9\u306b\u307e\u3068\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\uff08Java\u306b\u306f\u3001\u6587\u5b57\u306b\u5bfe\u5fdc\u3059\u308bCharacter\u30af\u30e9\u30b9\u304c\u5b58\u5728\u3059\u308b\u306e\u3067\u3001\u3053\u3053\u3067\u306f\u540c\u4e00\u306e\u30af\u30e9\u30b9\u540d\u3092\u907f\u3051\u308b\u305f\u3081\u3001Chara\u3068\u3057\u3066\u3044\u307e\u3059\uff09<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\npublic class Chara {\r\n    String name;\r\n    int hp;\r\n    int attack;\r\n}\r\n<\/pre>\n<p>\u305d\u3057\u3066\u3001\u52c7\u8005\u3084\u30b9\u30e9\u30a4\u30e0\u306f Chara \u30af\u30e9\u30b9\u3092\u7d99\u627f\u3057\u307e\u3059\u3002<br \/>\nJava\u3067\u3001Chara\u30af\u30e9\u30b9\u3092\u7d99\u627f\u3057\u3066\u5225\u306e\u30af\u30e9\u30b9\u3092\u4f5c\u308b\u5834\u5408\u3001extends \u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u4f7f\u3063\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\npublic class Hero extends Chara {\r\n}\r\n<\/pre>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\npublic class Slime extends Chara {\r\n}\r\n<\/pre>\n<p>\u3053\u308c\u306b\u3088\u308a\u3001\u52c7\u8005\u3082\u30b9\u30e9\u30a4\u30e0\u3082 name \u3084 hp \u3092\u6301\u3064\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u7d99\u627f\u3092\u4f7f\u3046\u3068\u3001\u5171\u901a\u3059\u308b\u90e8\u5206\u3092\u4f55\u5ea6\u3082\u66f8\u304b\u306a\u304f\u3066\u6e08\u307f\u307e\u3059\u3002<\/p>\n<p>\u305f\u3060\u3057\u3001\u7d99\u627f\u306f\u4f55\u3067\u3082\u4f7f\u3048\u3070\u3088\u3044\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u57fa\u672c\u7684\u306b\u306f\u3001<\/p>\n<p>A\u306fB\u306e\u4e00\u7a2e\u3067\u3042\u308b<\/p>\n<p>\u3068\u8a00\u3048\u308b\u5834\u5408\u306b\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<p>\u52c7\u8005\u306f\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u306e\u4e00\u7a2e\u3067\u3059\u3002<br \/>\n\u30b9\u30e9\u30a4\u30e0\u3082\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u306e\u4e00\u7a2e\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306a\u95a2\u4fc2\u306a\u3089\u3001\u7d99\u627f\u3092\u4f7f\u3046\u5019\u88dc\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h4>\u30dd\u30ea\u30e2\u30fc\u30d5\u30a3\u30ba\u30e0\u3068\u306f<\/h4>\n<p>\u30dd\u30ea\u30e2\u30fc\u30d5\u30a3\u30ba\u30e0\u3068\u306f\u3001\u540c\u3058\u547d\u4ee4\u3067\u3082\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u3088\u3063\u3066\u9055\u3046\u52d5\u304d\u3092\u3055\u305b\u308b\u8003\u3048\u65b9\u3067\u3059\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070\u3001\u52c7\u8005\u306b\u3082\u30b9\u30e9\u30a4\u30e0\u306b\u3082 attack() \u3068\u3044\u3046\u30e1\u30bd\u30c3\u30c9\u304c\u3042\u308b\u3068\u3057\u307e\u3059\u3002<\/p>\n<p>\u52c7\u8005\u306e attack() \u306f\u5263\u3067\u653b\u6483\u3059\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<br \/>\n\u30b9\u30e9\u30a4\u30e0\u306e attack() \u306f\u4f53\u5f53\u305f\u308a\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<br \/>\n\u30c9\u30e9\u30b4\u30f3\u306e attack() \u306f\u708e\u3092\u5410\u304f\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u540c\u3058 attack() \u3068\u3044\u3046\u547d\u4ee4\u3067\u3082\u3001\u5b9f\u969b\u306e\u52d5\u304d\u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u3088\u3063\u3066\u9055\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u304c\u30dd\u30ea\u30e2\u30fc\u30d5\u30a3\u30ba\u30e0\u306e\u30a4\u30e1\u30fc\u30b8\u3067\u3059\u3002<\/p>\n<p>\u6700\u521d\u306f\u96e3\u3057\u304f\u611f\u3058\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001RPG\u3067\u8003\u3048\u308b\u3068\u81ea\u7136\u3067\u3059\u3002<\/p>\n<p>\u300c\u653b\u6483\u3059\u308b\u300d\u3068\u3044\u3046\u547d\u4ee4\u306f\u540c\u3058\u3067\u3082\u3001\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u306b\u3088\u3063\u3066\u653b\u6483\u65b9\u6cd5\u304c\u9055\u3046\u3002<\/p>\n<p>\u3053\u308c\u304c\u30dd\u30ea\u30e2\u30fc\u30d5\u30a3\u30ba\u30e0\u3067\u3059\u3002<\/p>\n<h4>\u62bd\u8c61\u5316\u3068\u306f<\/h4>\n<p>\u62bd\u8c61\u5316\u3068\u306f\u3001\u7d30\u304b\u3044\u9055\u3044\u3092\u3044\u3063\u305f\u3093\u7f6e\u3044\u3066\u304a\u304d\u3001\u91cd\u8981\u306a\u7279\u5fb4\u3060\u3051\u3092\u53d6\u308a\u51fa\u3057\u3066\u8003\u3048\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070\u3001RPG\u306b\u306f\u3044\u308d\u3044\u308d\u306a\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u304c\u767b\u5834\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u52c7\u8005<\/li>\n<li>\u6226\u58eb<\/li>\n<li>\u9b54\u6cd5\u4f7f\u3044<\/li>\n<li>\u30b9\u30e9\u30a4\u30e0<\/li>\n<li>\u30b4\u30d6\u30ea\u30f3<\/li>\n<li>\u30c9\u30e9\u30b4\u30f3<\/li>\n<\/ul>\n<p>\u305d\u308c\u305e\u308c\u898b\u305f\u76ee\u3082\u5f79\u5272\u3082\u9055\u3044\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u5171\u901a\u3057\u3066\u898b\u308b\u3068\u3001\u3069\u308c\u3082\u300c\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u300d\u3068\u8003\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u306b\u306f\u3001\u540d\u524d\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\nHP\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u653b\u6483\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001\u7d30\u304b\u3044\u9055\u3044\u3092\u53d6\u308a\u9664\u3044\u3066\u3001\u5171\u901a\u3059\u308b\u90e8\u5206\u306b\u6ce8\u76ee\u3059\u308b\u306e\u304c\u62bd\u8c61\u5316\u3067\u3059\u3002<\/p>\n<p>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u3067\u306f\u3001\u3053\u306e\u62bd\u8c61\u5316\u306b\u3088\u3063\u3066\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u6574\u7406\u3057\u3084\u3059\u304f\u3057\u307e\u3059\u3002<\/p>\n<h3>UML\u3092\u4f7f\u3046\u3068\u30af\u30e9\u30b9\u306e\u95a2\u4fc2\u3092\u6574\u7406\u3057\u3084\u3059\u3044<\/h3>\n<p>\u30af\u30e9\u30b9\u304c\u5c11\u306a\u3044\u3046\u3061\u306f\u3001\u30b3\u30fc\u30c9\u3092\u898b\u308c\u3070\u95a2\u4fc2\u3092\u628a\u63e1\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001RPG\u306e\u3088\u3046\u306b\u767b\u5834\u4eba\u7269\u3084\u30a2\u30a4\u30c6\u30e0\u304c\u5897\u3048\u3066\u304f\u308b\u3068\u3001\u30af\u30e9\u30b9\u540c\u58eb\u306e\u95a2\u4fc2\u304c\u5206\u304b\u308a\u306b\u304f\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u5f79\u7acb\u3064\u306e\u304cUML\u3067\u3059\u3002<\/p>\n<p>UML\u3068\u306f\u3001\u30af\u30e9\u30b9\u3084\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u95a2\u4fc2\u3092\u56f3\u3067\u8868\u3059\u305f\u3081\u306e\u4e16\u754c\u5171\u6709\u306e\u8a18\u6cd5\u3067\u3059\u3002<\/p>\n<p>\u7d71\u4e00\u30e2\u30c7\u30ea\u30f3\u30b0\u8a00\u8a9e(Unified Modeling Language)\u306e\u982d\u6587\u5b57\u3092\u53d6\u3063\u3066\u3001UML\u3068\u7565\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070\u3001Hero \u30af\u30e9\u30b9\u3092\u7c21\u5358\u306b\u56f3\u3067\u8868\u3059\u3068\u3001\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre>\r\n+----------------+\r\n| Hero           |\r\n+----------------+\r\n| name           |\r\n| hp             |\r\n+----------------+\r\n| attack()       |\r\n+----------------+\r\n\r\n<\/pre>\n<p>\u3053\u308c\u3092\u30af\u30e9\u30b9\u56f3\u3068\u547c\u3073\u307e\u3059\u3002<br \/>\n\u30af\u30e9\u30b9\u56f3\u306f\u56db\u89d2\u5f62\u30923\u3064\u306e\u90e8\u5206\u306b\u5206\u3051\u3066\u8a18\u8ff0\u3057\u307e\u3059\u3002<br \/>\n\u4e00\u756a\u4e0a\u306b\u306f\u30af\u30e9\u30b9\u540d\u3092\u66f8\u304d\u307e\u3059\u3002<br \/>\n\u771f\u3093\u4e2d\u306b\u306f\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u66f8\u304d\u307e\u3059\u3002<br \/>\n\u4e00\u756a\u4e0b\u306b\u306f\u30e1\u30bd\u30c3\u30c9\u3092\u66f8\u304d\u307e\u3059\u3002<\/p>\n<p>\u3055\u3089\u306b\u3001\u52c7\u8005\u3068\u30b9\u30e9\u30a4\u30e0\u304c\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u3092\u7d99\u627f\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u8003\u3048\u3089\u308c\u307e\u3059\u3002<br \/>\n\u30af\u30e9\u30b9\u56f3\u3067\u7d99\u627f\u3092\u8868\u3059\u5834\u5408\u3001\u7d99\u627f\u5143\u306e\u30af\u30e9\u30b9\u5074\u306b\u25b3\u3092\u8a18\u8f09\u3057\u3066\u3001\u305d\u3053\u304b\u3089\u7d99\u627f\u5148\u306e\u30af\u30e9\u30b9\u306b\u7dda\u3067\u63a5\u7d9a\u3057\u307e\u3059\u3002<\/p>\n<pre>\r\n+----------------+\r\n| Chara          |\r\n+----------------+\r\n| name           |\r\n| hp             |\r\n| attack         |\r\n+----------------+\r\n| attack()       |\r\n+----------------+\r\n        \u25b3\r\n        |\r\n        +-------------------------+\r\n        |                         |\r\n+----------------+        +----------------+\r\n| Hero           |        | Slime          |\r\n+----------------+        +----------------+\r\n|                |        |                |\r\n+----------------+        +----------------+\r\n|                |        |                |\r\n+----------------+        +----------------+\r\n\r\n<\/pre>\n<p>Hero \u3068 Slime \u306f\u3001\u3069\u3061\u3089\u3082 Chara \u3092\u7d99\u627f\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001<\/p>\n<p>\u52c7\u8005\u306f\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u306e\u4e00\u7a2e<br \/>\n\u30b9\u30e9\u30a4\u30e0\u3082\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u306e\u4e00\u7a2e<\/p>\n<p>\u3068\u8003\u3048\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u56f3\u306b\u3059\u308b\u3068\u3001\u3069\u306e\u30af\u30e9\u30b9\u304c\u3069\u3093\u306a\u95a2\u4fc2\u306b\u3042\u308b\u306e\u304b\u3092\u6574\u7406\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u6700\u521d\u304b\u3089\u672c\u683c\u7684\u306aUML\u3092\u899a\u3048\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u307e\u305a\u306f\u3001\u30af\u30e9\u30b9\u540d\u3001\u30d5\u30a3\u30fc\u30eb\u30c9\u3001\u30e1\u30bd\u30c3\u30c9\u3092\u7c21\u5358\u306a\u56f3\u3067\u6574\u7406\u3067\u304d\u308c\u3070\u5341\u5206\u3067\u3059\u3002<\/p>\n<h3>\u307e\u3068\u3081\uff1a\u307e\u305a\u306f\u30af\u30e9\u30b9\u3068\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u7406\u89e3\u3057\u3088\u3046<\/h3>\n<p>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u3068\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u300c\u3082\u306e\u300d\u3084\u300c\u5f79\u5272\u300d\u306b\u5206\u3051\u3001\u305d\u308c\u305e\u308c\u306b\u60c5\u5831\u3068\u52d5\u304d\u3092\u6301\u305f\u305b\u308b\u8003\u3048\u65b9\u3067\u3059\u3002<\/p>\n<p>RPG\u3067\u8003\u3048\u308b\u3068\u3001\u52c7\u8005\u3001\u30b9\u30e9\u30a4\u30e0\u3001\u6b66\u5668\u3001\u85ac\u8349\u306a\u3069\u304c\u305d\u308c\u305e\u308c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u30af\u30e9\u30b9\u306f\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u308b\u305f\u3081\u306e\u8a2d\u8a08\u56f3\u3067\u3059\u3002<br \/>\n\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u3001\u305d\u306e\u8a2d\u8a08\u56f3\u304b\u3089\u4f5c\u3089\u308c\u305f\u5b9f\u4f53\u3067\u3059\u3002<br \/>\n\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306f\u3001\u30af\u30e9\u30b9\u304b\u3089\u4f5c\u3089\u308c\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u30af\u30e9\u30b9\u306e\u4e2d\u306b\u306f\u30d5\u30a3\u30fc\u30eb\u30c9\u3068\u30e1\u30bd\u30c3\u30c9\u3092\u66f8\u304d\u307e\u3059\u3002<\/p>\n<p>\u30d5\u30a3\u30fc\u30eb\u30c9\u306f\u3001\u305d\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u6301\u3064\u60c5\u5831\u3067\u3059\u3002<br \/>\n\u30e1\u30bd\u30c3\u30c9\u306f\u3001\u305d\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u3067\u304d\u308b\u52d5\u4f5c\u3067\u3059\u3002<\/p>\n<p>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u306b\u306f\u3001\u30ab\u30d7\u30bb\u30eb\u5316\u3001\u7d99\u627f\u3001\u30dd\u30ea\u30e2\u30fc\u30d5\u30a3\u30ba\u30e0\u3001\u62bd\u8c61\u5316\u3068\u3044\u3063\u305f\u8003\u3048\u65b9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3089\u306f\u6700\u521d\u304b\u3089\u3059\u3079\u3066\u7406\u89e3\u3057\u3088\u3046\u3068\u3057\u306a\u304f\u3066\u3082\u5927\u4e08\u592b\u3067\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f\u3001\u300c\u30af\u30e9\u30b9\u3068\u3044\u3046\u8a2d\u8a08\u56f3\u3092\u4f5c\u308a\u3001\u305d\u3053\u304b\u3089\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u308b\u300d\u3068\u3044\u3046\u611f\u899a\u3092\u3064\u304b\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>RPG\u3092\u4f5c\u308a\u306a\u304c\u3089\u5b66\u3076\u3068\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u306f\u304b\u306a\u308a\u7406\u89e3\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u6b21\u56de\u306f\u3001RPG\u306b\u767b\u5834\u3059\u308b\u300c\u52c7\u8005\u300d\u3092\u984c\u6750\u306b\u3057\u3066\u3001Java\u306e\u30af\u30e9\u30b9\u3092\u5b9f\u969b\u306b\u4f5c\u3063\u3066\u307f\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Java\u3092\u5b66\u3073\u59cb\u3081\u308b\u3068\u3001\u304b\u306a\u308a\u65e9\u3044\u6bb5\u968e\u3067\u300c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u300d\u3068\u3044\u3046\u8a00\u8449\u304c\u51fa\u3066\u304d\u307e\u3059\u3002 \u306a\u305c\u306a\u3089\u3001Java\u81ea\u4f53\u304c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u8a00\u8a9e\u3060\u304b\u3089\u3067\u3059\u3002 \u3057\u304b\u3057\u3001\u521d\u5fc3\u8005\u306b\u3068\u3063\u3066\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u306f\u5206\u304b\u308a\u306b\u304f\u3044\u8003\u3048 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":528,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[71,194,175],"tags":[75,195,11,182],"class_list":["post-525","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-java","category-uml","category-175","tag-java","tag-rpg","tag-uml","tag-182"],"nelio_content":{"autoShareEndMode":"never","automationSources":{"useCustomSentences":false,"customSentences":[]},"efiAlt":"","efiUrl":"","followers":[1],"highlights":[],"isAutoShareEnabled":true,"networkImageIds":[],"permalinkQueryArgs":[],"series":[],"suggestedReferences":[]},"views":27,"_links":{"self":[{"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/posts\/525","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=525"}],"version-history":[{"count":4,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/posts\/525\/revisions"}],"predecessor-version":[{"id":530,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/posts\/525\/revisions\/530"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/media\/528"}],"wp:attachment":[{"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=525"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=525"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=525"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}