{"id":20168559,"url":"https://github.com/manuelandersen/learning-oop","last_synced_at":"2025-03-03T04:12:11.031Z","repository":{"id":247010123,"uuid":"824814176","full_name":"manuelandersen/learning-oop","owner":"manuelandersen","description":"Learning Python OOP with a text-based game","archived":false,"fork":false,"pushed_at":"2024-07-17T01:55:43.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-13T15:16:29.881Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/manuelandersen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-06T02:59:26.000Z","updated_at":"2024-07-17T01:55:47.000Z","dependencies_parsed_at":"2025-01-13T15:16:35.334Z","dependency_job_id":"5af9aadc-96f8-4f27-8f69-f24a5c916376","html_url":"https://github.com/manuelandersen/learning-oop","commit_stats":null,"previous_names":["manuelandersen/learning-oop"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manuelandersen%2Flearning-oop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manuelandersen%2Flearning-oop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manuelandersen%2Flearning-oop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manuelandersen%2Flearning-oop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manuelandersen","download_url":"https://codeload.github.com/manuelandersen/learning-oop/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241605819,"owners_count":19989612,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T01:08:41.248Z","updated_at":"2025-03-03T04:12:11.010Z","avatar_url":"https://github.com/manuelandersen.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Understanding OOP \n\nThis is a repo for the code in this [video](https://www.youtube.com/watch?v=cM_ocyOrs_k), thanks to him i finally understand OOP, chek it out and give it some like's.\n\n# Classes Basics\n\nClasses are \"blueprints\" for a specific object\n\nWe will implement three classes:\n\n1) Characters\n2) Weapons\n3) Health bars \n\n# Characters Class \n\nWe need to answer:\n- What is it like? --\u003e Attributes\n    - Name\n    - Health\n    - Damage\n- What can it do? --\u003e Method's\n    - Attack\n\n- The __init__() method is where we pass the attributes that we want to give to our new object. --\u003e(Class level variables)\nIf we set variables before the init method they will be shared across all instances of a class. --\u003e\n(Object-level variables)\n\n# Weapons Class \n\nObjects can hold another objects.\n\nWe need to answer:\n- What is it like? --\u003e Attributes\n    - Name\n    - Type\n    - Damage\n    - Value\n\n# Class Inheritance: Hero \u0026 Enemy\n\nWhat if we want the Hero to change it's weapon by equiping or dropping one? And the enemy to have the same weapon all the time? --\u003e How to crontrol this when creating the object?\n\nSo we want the Hero and the Enemy to behave differently --\u003e Class Inheritance:\n\nBecause we have a complete class, we can create as many subclasses out of it.\n\n# Health Bars as classes\n\nWht properties should it have?\n    - Lenght\n    - Maximum value\n    - Dynamic value ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanuelandersen%2Flearning-oop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanuelandersen%2Flearning-oop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanuelandersen%2Flearning-oop/lists"}