Trying to get player movement from a class [closed]

I working on my game for the Ludum dare 48 game jam. I decided to learn raylib, the c++ version, to make a game. But my player code doesn’t even work. I have two files:
main.cpp:

#include "raylib.h"  int main() {     const int windowWidth = 1200;     const int windowHeight = 720;     InitWindow(windowWidth, windowHeight, "Ludum Dare 48");     /*Player*/     Player ply;     /*end of Player */     int rot = 0;     int increment = 1;     SetTargetFPS(60);     while (!WindowShouldClose()) {         BeginDrawing();         ClearBackground(RAYWHITE);                  ply.yes(windowWidth/2, windowHeight-50, 30,30);         EndDrawing();     } } 

and player.cpp

#include "raylib.h" class Player {     public:     int playerX;     int playerY;     void yes(int x, int y, int sizeX, int sizeY);     void input();              }; void Player::yes(int x, int y, int sizeX, int sizeY) {     DrawRectangle(x,y,sizeX,sizeY, RED);     if (IsKeyDown(KEY_RIGHT)) {             x++;         }         if (IsKeyDown(KEY_LEFT)) {             x--;         } } 

I get the error:
cc1plus.exe: warning: command line option '-std=c99' is valid for C/ObjC but not for C++

it looks like a compiler error, not an error in my code, but when the class is removed the code runs fine.

Question regarding Pact magic with multiclassing and a class specific bonus

I play a 6 bard/ 4 warlock multiclass. My character recently obtained a rhythm makers drum +3, giving a +3 bonus to my bard spells’ DC and rolls.

I am curious if I were to cast a spell I had taken on my warlock list (hold person) with a bard spell slot, would the bonus increase the DC? DnDB added the bonus to all my characters spells (I know that isn’t right) but thought it may be applicable if a spell is on both lists.

Thank you in advance.

Is Additional Fighting Style underpowered as the only class feature at a given level?

This question is inspired by considering minor homebrew improvements to the Champion subclass, which is frequently but not universally considered a weak subclass.

Looking at the class features, the following occurred to me about Additional Fighting Style (level 10):

  1. Most fighting styles don’t synergize. The main exception is taking both a defensive and offensive fighting style, leading to common recommendations of Defense as the go-to choice for level 10 Champions.
  2. Every class that gets a first fighting style gets additional features at that level (e.g. Spellcasting for level 2 Paladins and Rangers).

So Additional Fighting Style by itself seems pretty weak compared to the level 10 features of other fighter subclasses. Hence the question.

Can one class’ feature help another class qualify for a feature?

It’s best to just give an example for this:

Let’s say I have levels in a rogue archetype that gives up Evasion, but I take a two level dip into monk to get Evasion. Would I qualify for the Improved Evasion advanced talent upon reaching rogue level 10? (yes, I know RAW Improved Evasion has no Evasion prerequisite but I doubt most GMs would let you get away with taking it without Evasion)

Or if I had levels in an alchemist archetype that gave up Mutagen, but took a dip in Mutagenic Mauler or Mutation Warrior, could I take alchemist discoveries that affect mutagens, as an alchemist, and apply them to the dip class’ Mutagen?

Which class gives most new magical powers for 1 level dip

Background: I have a bard, who is a bit lacking in low level spell selection, so I’ve been looking into multiclassing to get some more.

Stats (you can give +2 ASI for the benefit of multiclassing):

STR 11, DEX 17, CON 14, INT 9, WIS 14, CHA 20

So, Wizard is out.

For classes that pick subclass at level 1, subclass features count of course.

From what I have gathered from unofficial internet snippets, Tasha’s Cauldron of Everything seems give some nice options (like 4 cantrips and 5 1st level spells?!). But I don’t have that book myself to verify, and I may have missed other options, so the question:

What is the most different spells or spell-like powers a 1-level multiclass dip can give?

To clarify: I mean spells the character can actually have available, not the number they can choose from. I also realize now, that divine casters who pick spells every morning are their own category, not directly comparable. Still, for purposes of this Q, count the daily prepared spells.

Bard isn’t option for me, so I’ll include it as an example: 4 cantrips, 2 spells, 1 magical ability (Bardic Inspiration).

UA is ok, though I’d prefer official classes.

What is the class of a spell cast from a staff?

In D&D 5e when a character casts a spell from a staff (e.g. staff of a magi), what is the class of that spell? It is important for items like "+1 to DC for this class spells that you cast" from Tasha’s.

Specific example:

  • I am a lvl 20 Artificer.
  • I am attuned to and holding a Staff of Power, and casting Hold Monster from it.
  • I am also attuned and holding in my other hand (let’s say DM would allow my hand to hold all of them, this is just for illustration) all of the following:
    • +3 All purpose tool (bonus to artificer spells I cast).
    • +2 Arcane Grimoire (bonus to wizard spells I cast).
    • +1 Bloodwell Vial (bonus to sorcerer spells I cast).

What bonus to DC will I get from these items when casting this Hold Monster?

Is there a class or set of feats that focuses on shooting with the ballista?

I’ve tried to do a little research, as my players will soon fight pirates, whose warship is armed with ballistas (gunpowder hasn’t been invented yet). Unfortunately, I was unable to find any class that would exactly fit the role of a ballista operator.

Is there a class that gets bonuses for attack, damage or some other useful features for ballistae? The pirates should be around 12th–14th level.

I use ballista rules from Heroes of The Battle, both heavy and light.

If there are some useful feats for that, please do not hestitate to mention it. As far as I have found I have:

  • ballista proficiency
  • crossbow sniper
  • plunging shot
  • ranged weapon mastery

Materials from 3.0, 3.5, Dragon Magazine and Dungeon Adventures are allowed.

Just to clarify, as the gamemaster, I do define ballista as an oversized variation of crossbow, thus most of feats, classes or features that affect crossbows will affect ballistae as well.

Automatically add Link Images to Posts in WordPress if has not linked before or has specified class

I use this code to Automatically add Link Images to Posts in WordPress.

function wpguy_linked_image($  content){ if (is_single() === TRUE){ $  searchfor = '/(<img[^>]*\/>)/';   $  replacewith = '<a target="_blank" href="'.get_permalink().'">$  1</a>'; { $  content = preg_replace($  searchfor, $  replacewith, $  content); } } return $  content; } add_filter('the_content', 'wpguy_linked_image'); 

How can I add a condition that if the img tags are already linked or have class="no link me" , they will be excluded from linking?