1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. Don’t forget to sign up for the Hive Cup. There’s a 555 EUR prize pool. Sign up now!
    Dismiss Notice
  4. The Hive Workshop Cup contest results have been announced! See the maps that'll be featured in the Hive Workshop Cup tournament!
    Dismiss Notice
  5. Units have been turned into heroes in our latest Icon Contest! Vote for the best icon set at the Icon Contest #18 Poll!
    Dismiss Notice
  6. The poll for Hive's 12th Concept Art Contest is up! Go cast your vote for your favourite genie!
    Dismiss Notice
  7. The raddest synthwave tracks were chosen - Check out our Music Contest #12 - Results and congratulate the winners!
    Dismiss Notice
  8. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.
-Kobas-
Last Activity:
Sep 29, 2016
Joined:
Jan 17, 2010
Messages:
5,894
Albums:
5

Awarded Medals 6

Birthday:
Sep 26, 1990 (Age: 29)
Home Page:
Location:
Serbia, Belgrade
Occupation:
Student at Faculty of Transport and Traffic Engine

-Kobas-

★ SotP Project Leader ★, 29, from Serbia, Belgrade

-Kobas- was last seen:
Sep 29, 2016
    1. Orcnet
      Orcnet
      How the program tool your making? is it finish now :)
    2. Orcnet
      Orcnet
      Oh I think I forgot to add more reply in your message :p

      Yeah sure just don't rush your importance especially school work, The map section is still in good shape so no worries.
    3. Zeatherann
      Zeatherann
      Mag's C+ code changed.
    4. Zeatherann
      Zeatherann
      Knew it was something stupid.
    5. Zeatherann
      Zeatherann
      How is your Avatar 150x100?
    6. aaron
      aaron
      cool ty :)
    7. aaron
      aaron
      hey Kobas, would you be so kind as to review my map? i uploaded it a while ago with improper quality and description but its fixed now and in the pending section. I do realize you are busy so i'll understand if it will take a while. Thanks in advance.
    8. Daffa the Mage
      Daffa the Mage
      -Kobas-, pending section begin to reach 2 pages D:
    9. Pharaoh_
      Pharaoh_
      This is exactly what I had in mind, but I didn't find the icon with a quick look, so I skipped it. Maybe the next one, if I use the same template in the future :)

      Thanks by the way!
    10. Orcnet
      Orcnet
      -Kobas- I updated my map now, just added some doodads to make it look less empty and no plans in making ground levels to decrease flat-looking view though :)
    11. Freeze87
      Freeze87
      nisi mi odgovorio :) Inace cestitke za povratak na staro radno mesto :D
    12. Freeze87
      Freeze87
      manje vise to da li te zanima, mozes li da je approve? :D to cekam da mogu ostali da je vide, da dobijem kritike,komentare itd :P :D
    13. Freeze87
      Freeze87
      vazi, opusteno ;)
    14. Freeze87
      Freeze87
      zdravo Kobas, posto je Orcnet odsutan, mozes li da pogledas ovu moju mapu: http://www.hiveworkshop.com/forums/maps.php?status=p&u=Freeze87 Teren je revan (flat) ali takva je mapa, pravi se 100-200 barikada tako da mora takva da bude da bi igraci mogli da grade brzo bez prepreka....posto znam da si strog kad je u pitanju teren jer ti je to speciajalnost :DD
    15. Orcnet
      Orcnet
      Thanks but I'm not done yet with the remaining maps, I'll leave mine so you can start with a smaller scale of pending/s :)
    16. eubz
    17. Orcnet
      Orcnet
      Kobii-chan! I'll probably leave this site for 2 days(just want to cool off on some stuff) I'll leave the pending section with my map on it but if there would be incoming map pending could you take over? I'll be doing all of my things for today and tomorrow I'm gone :)
    18. Magtheridon96
      Magtheridon96
      No you did not D:

      #include <string>
      #include <exception>
      #include <utility>
      #include <algorithm>
      #include <vector>

      namespace {
      int generate_user_id() {
      static int counter = 0;
      return ++counter;
      }
      }

      class User {
      private:
      int m_id;
      std::string m_name;

      public:
      User(const std::string& p_name = "") noexcept : m_name(p_name), m_id(generate_user_id()) {}
      User(const User& rhs) noexcept : m_name(rhs.m_name), m_id(rhs.m_id) {}

      User& operator =(const User& rhs) noexcept
      {
      this->m_name = rhs.m_name;
      this->m_id = rhs.m_id;
      return *this;
      }

      virtual ~User() noexcept {}

      inline const bool operator ==(const User& rhs) const noexcept { return this->m_id == rhs.m_id; }
      inline const bool operator !=(const User& rhs) const noexcept { return this->m_id != rhs.m_id; }
      inline const int get_id() const noexcept { return m_id; }
      inline const std::string& get_name() const noexcept { return m_name; }
      };

      class UserDatabase {
      private:
      std::vector<User> user_list;

      public:
      UserDatabase() noexcept {}

      UserDatabase(const UserDatabase& rhs) noexcept
      {
      for (auto node = rhs.user_list.begin(); node != rhs.user_list.end(); ++node)
      {
      user_list.push_back(*node);
      }
      }

      UserDatabase& operator =(const UserDatabase& rhs) noexcept
      {
      user_list.clear();

      for (auto node = rhs.user_list.begin(); node != rhs.user_list.end(); ++node)
      {
      user_list.push_back(*node);
      }

      return *this;
      }

      virtual ~UserDatabase() noexcept {}

      inline void add_user(const User& user) noexcept { user_list.push_back(user); }
      inline void add_user(const User* const user) noexcept { user_list.push_back(*user); }
      inline const int user_count() const noexcept { return user_list.size(); }

      const User& get_user(int u_id) const
      {
      for (auto node = user_list.begin(); node != user_list.end(); ++node)
      {
      if (u_id == node->get_id())
      {
      return *node;
      }
      }

      throw std::runtime_error("User Not Found (" + std::to_string(u_id) + ")");
      }

      const User& get_user(const std::string& u_name) const
      {
      for (auto node = user_list.begin(); node != user_list.end(); ++node)
      {
      if (u_name == node->get_name())
      {
      return *node;
      }
      }

      throw std::runtime_error("User Not Found (" + u_name + ")");
      }

      void remove_user(const User& which_user) noexcept
      {
      auto node = std::find(user_list.begin(), user_list.end(), which_user);

      if (node != user_list.end())
      {
      user_list.erase(node);
      }
      }
      };

      This is how you should've done it ;_;
      This code is almost flawless in terms of standard C++11 shit :D
      The only things it lacks are move constructors for the class but you don't really need those here anyway.

      Usage example:

      int main() {
      UserDatabase database;

      database.add_user(new User("Magtheridon96"));
      database.add_user(new User("-Kobas-"));
      database.add_user(new User("Geries"));

      database.add_user(new User("Kelly"));
      database.add_user(new User("Kellypoo"));

      std::cout << "User count is " << database.user_count() << std::endl;

      try
      {
      std::cout << "User id of -Kobas- is " << database.get_user("-Kobas-").get_id() << std::endl;
      std::cout << "User id of Magtheridon96 is " << database.get_user("Magtheridon96").get_id() << std::endl;
      std::cout << "User id of Ralle is " << database.get_user("Ralle").get_id() << std::endl;
      }
      catch (const std::exception& e)
      {
      std::cout << e.what() << std::endl;
      }

      return 0;
      }

      And it actually works.
    19. IceThundaWolfes
      IceThundaWolfes
      I happen to know you're really good at unprotecting maps. I had a issue with my map and accidentally protected it without making a unprotected copy. If I send you the map could you unprotect it? I can also easily prove that it is my map and not someone elses.
    20. Daffa the Mage
      Daffa the Mage
      Thanks for the info ;)
  • Loading...
  • Loading...
  • About

    Birthday:
    Sep 26, 1990 (Age: 29)
    Home Page:
    http://www.hiveworkshop.com/forums/project12/
    Location:
    Serbia, Belgrade
    Occupation:
    Student at Faculty of Transport and Traffic Engine
    Current Project:
    SPRPG Shadows of the Past
    WarCraft 3 Realm:
    Northrend (Europe)
    Favourite Race:
    Tauren
    Favorite Organization/Clan:
    Bloodhoof
    No.

    Warcraft

    Signature

    Looking for a 2D artist willing to
    work on mobile RPG themed game.
    Link
    Send me PM if interested!
  • Loading...
  • Loading...
  • Loading...