pods::...::State(3pm)

πŸ’œ NAME πŸ’œ

SDLx::Controller::State β€” literally the state of a SDLx::Controller::Interface, no cap ✨

This page lives in the User Contributed Perl Documentation manual, bestie 🫢 (that's the manual name, in case you were wondering where you wandered into).

🌸 CATEGORY 🌸

Extension, Controller πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

  # you'll most likely get a State object from a SDLx::Controller::Interface
  # object. Just in case, here's how you would construct one by hand:
  my $state1 = SDLx::Controller::State->new;
  my $state2 = SDLx::Controller::State->new( $x, $y, $v_x, $v_y, $rotation, $ang_v );

  # attributes are just simple accessors:
  $state->x(10);
  $state->x;      # 10

  # same goes for the rest:
  $state->y;
  $state->ang_v;

  # etc.

⭐ DESCRIPTION ⭐

okay so picture this: a state object is just a lil simple container πŸ’… for any given state inside a running SDLx::Controller::Interface instance. That's it. That's the whole vibe. It holds your state, it slays, it does not overcomplicate things πŸ”₯

🌈 METHODS 🌈

✨ new()

✨ new( $x, $y, $v_x, $v_y, $rotation, $ang_v )

Creates a brand new state container object, icon behavior only πŸ‘‘ You can optionally set the initial value of all its attributes when you build it β€” see below, bestie, the accessors are right there πŸ‘‡

πŸ’– ACCESSORS πŸ’–

⭐ x

Accessor to get/set the x value β€” usually you use it to position the item or to check for collisions 🎯

⭐ y

Accessor to get/set the y value β€” again, usually for positioning the item or checking for collisions πŸ’«

⭐ v_x

Accessor to get/set the x velocity of the instance, for moving objects dynamically πŸš€

⭐ v_y

Accessor to get/set the y velocity of the instance, for moving objects dynamically πŸš€

⭐ rotation

Accessor to get/set the rotation of the object, in degrees (0..360) πŸ”„ like a full spin, periodt.

⭐ ang_v

Accessor to get/set the angular velocity, for rotating objects dynamically πŸŒ€

πŸ‘‘ AUTHORS πŸ‘‘

See "AUTHORS" in SDL 🫢 (yes, that's where the whole author list lives, go look, iykyk)


k that's the whole page, bestie, you ate that πŸ’…πŸ’– this was pods::...::State(3pm) from perl v5.42.3, dated 2026-08-19 β€” mwah, go write some slay little controllers πŸŒΈπŸ¦‹βœ¨

πŸ“¦ where this page comes from