Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Object Properties  (Read 4099 times)

0 Members and 1 Guest are viewing this topic.

Kyoukan97

  • Newbie
  • *
  • Posts: 6
    • View Profile
Object Properties
« on: August 23, 2015, 10:49:58 pm »
Hi,
i was looking through the SFML-Wiki and I found this article about object property management :
https://github.com/SFML/SFML/wiki/Tutorial%3A-Object-Properties

Can someone explain, how he is able to call "getValue()" & "setValue()" in the member functions get/set of the PropertyManager ? The member variable mList stores an object of type IProperty* , and those functions are no members of that class? I don't get how he does that ^^

P.s My english isnt the best, dont judge  :D

Hapax

  • Hero Member
  • *****
  • Posts: 3043
  • My number of posts is shown in hexadecimal.
    • View Profile
Re: Object Properties
« Reply #1 on: August 23, 2015, 11:41:53 pm »
Looks a lot more like TProperty than IProperty.
Selba Ward - SFML drawables
Kairos - Timing Library
Rectangular Boundary Collision - Rectangular SAT Collision

@Hapaxiation - Hapaxia on Twitter